We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5d72b63 commit d003125Copy full SHA for d003125
systemvm/patches/debian/config/opt/cloud/bin/cs_vmp.py
@@ -18,10 +18,14 @@
18
from pprint import pprint
19
from netaddr import *
20
21
-
22
def merge(dbag, data):
23
"""
24
- Track vm passwords
+ create a dictionary of values new in data ignoring those in dbag and return it
+ :param dbag: old data
25
+ :param data: new data
26
+ :return: new data in the right format
27
- dbag[data['ip_address']] = data['password']
- return dbag
28
+ rc = {}
29
+ rc['id'] = 'vmpassword'
30
+ rc[data['ip_address']] = data['password']
31
+ return rc
0 commit comments