Add support for update password

Activate the password update feature.

Change-Id: I1a622edbd3a1858e9dcb585a79dbb7bba9281471
This commit is contained in:
Alexandru Coman 2015-03-26 15:35:30 +02:00
parent fc3b29454b
commit 3e0712b9b8

View File

@ -228,3 +228,12 @@ class CloudStack(base.BaseMetadataService):
if password:
self._delete_password()
return password
@property
def can_update_password(self):
"""The CloudStack Password Server supports password update."""
return True
def is_password_changed(self):
"""Check if a new password exists in the Password Server."""
return bool(self._get_password())