From 3e0712b9b817f68875c5d17fb61df7309cbfe26d Mon Sep 17 00:00:00 2001 From: Alexandru Coman Date: Thu, 26 Mar 2015 15:35:30 +0200 Subject: [PATCH] Add support for update password Activate the password update feature. Change-Id: I1a622edbd3a1858e9dcb585a79dbb7bba9281471 --- cloudbaseinit/metadata/services/cloudstack.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/cloudbaseinit/metadata/services/cloudstack.py b/cloudbaseinit/metadata/services/cloudstack.py index b7a0595c..8abc6e1d 100644 --- a/cloudbaseinit/metadata/services/cloudstack.py +++ b/cloudbaseinit/metadata/services/cloudstack.py @@ -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())