13.0.1
This commit is contained in:
@@ -53,7 +53,7 @@ class DecortController(object):
|
||||
_api: sdk_types.API | None = None
|
||||
_usermanager_whoami_result: None | dict = None
|
||||
|
||||
ANSIBLE_MODULES_VERSION = '13.0.0'
|
||||
ANSIBLE_MODULES_VERSION = '13.0.1'
|
||||
COMPATIBLE_SDK_MINOR_VERSION = '2.0'
|
||||
|
||||
VM_RESIZE_NOT = 0
|
||||
@@ -1254,6 +1254,10 @@ class DecortController(object):
|
||||
!= self._parse_hex(
|
||||
aparam_disk['bus_num_hex']
|
||||
)
|
||||
) or (
|
||||
aparam_disk['read_only'] is not None
|
||||
and comp_disk.get('read_only', False)
|
||||
!= aparam_disk['read_only']
|
||||
)
|
||||
):
|
||||
disks_to_detach.append(aparam_disk)
|
||||
@@ -1279,6 +1283,7 @@ class DecortController(object):
|
||||
disk_id=disk['id'],
|
||||
pci_slot_num_hex=pci_slot_num,
|
||||
bus_num_hex=bus_num,
|
||||
read_only_mode=disk['read_only'] or False,
|
||||
)
|
||||
|
||||
for disk in disks_to_delete:
|
||||
@@ -1844,7 +1849,7 @@ class DecortController(object):
|
||||
)
|
||||
|
||||
net_type = net['type']
|
||||
net_id = net.get('id', 0)
|
||||
net_id = net.get('id') or 0
|
||||
net_key = get_net_key(net_type=net_type, net_id=net_id)
|
||||
old_iface = ifaces_dict.get(net_key, {})
|
||||
api_params = {
|
||||
@@ -1879,7 +1884,7 @@ class DecortController(object):
|
||||
self.decort_api_call(
|
||||
arg_req_function=requests.post,
|
||||
arg_api_name='/restmachine/cloudapi/compute/netAttach',
|
||||
arg_params=api_params,
|
||||
arg_json_body=api_params,
|
||||
)
|
||||
self.set_changed()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user