Skip to content

Commit

Permalink
Merge release branch 4.10 to master
Browse files Browse the repository at this point in the history
* 4.10:
  CLOUDSTACK-10113 password resets only one at the time
  • Loading branch information
DaanHoogland committed Oct 25, 2017
2 parents b6dc40f + 4f6b91d commit 4d19373
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions systemvm/patches/debian/config/opt/cloud/bin/cs_vmp.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 4d19373

Please sign in to comment.