Repository: libcloud Updated Branches: refs/heads/trunk f817e2026 -> 5cea658c9
change_vm_admin_password as public method. Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/fa4a89af Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/fa4a89af Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/fa4a89af Branch: refs/heads/trunk Commit: fa4a89af36ce65bbe7424a2a99a0d3f341f744f8 Parents: 9fbf6e7 Author: Juan Font Alonso <juanfontalo...@gmail.com> Authored: Tue Jul 5 09:21:44 2016 +0200 Committer: Anthony Shaw <anthonys...@apache.org> Committed: Tue Jul 5 19:12:06 2016 +1000 ---------------------------------------------------------------------- libcloud/compute/drivers/vcloud.py | 4 ++-- libcloud/test/compute/test_vcloud.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/libcloud/blob/fa4a89af/libcloud/compute/drivers/vcloud.py ---------------------------------------------------------------------- diff --git a/libcloud/compute/drivers/vcloud.py b/libcloud/compute/drivers/vcloud.py index 722e9b9..f8067c9 100644 --- a/libcloud/compute/drivers/vcloud.py +++ b/libcloud/compute/drivers/vcloud.py @@ -1490,7 +1490,7 @@ class VCloud_1_5_NodeDriver(VCloudNodeDriver): self._change_vm_ipmode(vapp_href, ex_vm_ipmode) if ex_admin_password is not None: - self._change_vm_admin_password(vapp_href, ex_admin_password) + self.ex_change_vm_admin_password(vapp_href, ex_admin_password) # Power on the VM. if ex_deploy: @@ -2010,7 +2010,7 @@ class VCloud_1_5_NodeDriver(VCloudNodeDriver): res.object.insert(i, e) return res - def _change_vm_admin_password(self, vapp_or_vm_id, ex_admin_password): + def ex_change_vm_admin_password(self, vapp_or_vm_id, ex_admin_password): if ex_admin_password is None: return http://git-wip-us.apache.org/repos/asf/libcloud/blob/fa4a89af/libcloud/test/compute/test_vcloud.py ---------------------------------------------------------------------- diff --git a/libcloud/test/compute/test_vcloud.py b/libcloud/test/compute/test_vcloud.py index 1f1dfa3..94ac09a 100644 --- a/libcloud/test/compute/test_vcloud.py +++ b/libcloud/test/compute/test_vcloud.py @@ -204,7 +204,7 @@ class VCloud_1_5_Tests(unittest.TestCase, TestCaseMixin): '/api/vApp/vapp-8c57a5b6-e61b-48ca-8a78-3b70ee65ef6a', ['changed1', 'changed2']) def test_change_vm_admin_password(self): - self.driver._change_vm_admin_password( + self.driver.ex_change_vm_admin_password( '/api/vApp/vapp-8c57a5b6-e61b-48ca-8a78-3b70ee65ef6a', "12345678") def test_is_node(self):