Use both "keep" and "keep_data" for 6.1 compatibility

Change-Id: I833fafaf8b21df1fa031913a5287d02bd697ae24
This commit is contained in:
Yuriy Taraday 2015-09-01 16:08:07 +03:00
parent 4125bcc2c5
commit bb3ad1429d

View File

@ -16,6 +16,9 @@ def preserve_partition(node, partition):
for disk in disks:
for vol in disk['volumes']:
if vol['name'] == partition:
vol.update({'keep_data': True})
vol.update({
'keep': True,
'keep_data': True,
})
node.upload_node_attribute('disks', disks)