Merge release branch 4.9 to 4.10

* 4.9:
  CLOUDSTACK-10113 password resets only one at the time
This commit is contained in:
Daan Hoogland 2017-10-25 09:51:58 +02:00
commit 4f6b91d958
1 changed files with 8 additions and 4 deletions

View File

@ -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