@@ -31,7 +31,7 @@ def delete_database(self, value, ignore_missing=True):
3131 :class:`~openstack.exceptions.ResourceNotFound` will be
3232 raised when the database does not exist.
3333 When set to ``True``, no exception will be set when
34- attempting to delete a nonexistent server .
34+ attempting to delete a nonexistent database .
3535
3636 :returns: ``None``
3737 """
@@ -64,7 +64,7 @@ def delete_instance(self, value, ignore_missing=True):
6464 :class:`~openstack.exceptions.ResourceNotFound` will be
6565 raised when the instance does not exist.
6666 When set to ``True``, no exception will be set when
67- attempting to delete a nonexistent server .
67+ attempting to delete a nonexistent instance .
6868
6969 :returns: ``None``
7070 """
@@ -79,8 +79,19 @@ def get_instance(self, **data):
7979 def list_instance (self ):
8080 return instance .Instance .list (self .session )
8181
82- def update_instance (self , ** data ):
83- return instance .Instance (data ).update (self .session )
82+ def update_instance (self , value , ** attrs ):
83+ """Update a instance
84+
85+ :param value: Either the id of a instance or a
86+ :class:`~openstack.compute.v2.instance.Instance`
87+ instance.
88+ :attrs kwargs: The attributes to update on the instance represented
89+ by ``value``.
90+
91+ :returns: The updated instance
92+ :rtype: :class:`~openstack.compute.v2.instance.Instance`
93+ """
94+ return self ._update (instance .Instance , value , ** attrs )
8495
8596 def create_user (self , ** data ):
8697 return user .User (data ).create (self .session )
@@ -94,7 +105,7 @@ def delete_user(self, value, ignore_missing=True):
94105 :class:`~openstack.exceptions.ResourceNotFound` will be
95106 raised when the user does not exist.
96107 When set to ``True``, no exception will be set when
97- attempting to delete a nonexistent server .
108+ attempting to delete a nonexistent user .
98109
99110 :returns: ``None``
100111 """
0 commit comments