From 382d458f434000dfb5298e2579e9a58503b7f3a2 Mon Sep 17 00:00:00 2001 From: Daan Hoogland Date: Fri, 20 Oct 2017 15:10:18 +0200 Subject: [PATCH] CLOUDSTACK-10113 password resets only one at the time --- .../patches/debian/config/opt/cloud/bin/cs_vmp.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/systemvm/patches/debian/config/opt/cloud/bin/cs_vmp.py b/systemvm/patches/debian/config/opt/cloud/bin/cs_vmp.py index 3a8e06ed719..7873fe897f5 100755 --- a/systemvm/patches/debian/config/opt/cloud/bin/cs_vmp.py +++ b/systemvm/patches/debian/config/opt/cloud/bin/cs_vmp.py @@ -18,10 +18,14 @@ from pprint import pprint from netaddr import * - def merge(dbag, data): """ - Track vm passwords + create a dictionary of values new in data ignoring those in dbag and return it + :param dbag: old data + :param data: new data + :return: new data in the right format """ - dbag[data['ip_address']] = data['password'] - return dbag + rc = {} + rc['id'] = 'vmpassword' + rc[data['ip_address']] = data['password'] + return rc