Skip to content

Commit d003125

Browse files
DaanHooglandrohityadavcloud
authored andcommitted
FRO-94: password resets only one at the time (#4)
Merged on master in 382d458
1 parent 5d72b63 commit d003125

File tree

1 file changed

+8
-4
lines changed
  • systemvm/patches/debian/config/opt/cloud/bin

1 file changed

+8
-4
lines changed

systemvm/patches/debian/config/opt/cloud/bin/cs_vmp.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,14 @@
1818
from pprint import pprint
1919
from netaddr import *
2020

21-
2221
def merge(dbag, data):
2322
"""
24-
Track vm passwords
23+
create a dictionary of values new in data ignoring those in dbag and return it
24+
:param dbag: old data
25+
:param data: new data
26+
:return: new data in the right format
2527
"""
26-
dbag[data['ip_address']] = data['password']
27-
return dbag
28+
rc = {}
29+
rc['id'] = 'vmpassword'
30+
rc[data['ip_address']] = data['password']
31+
return rc

0 commit comments

Comments
 (0)