summaryrefslogtreecommitdiff
path: root/troveclient/v1/shell.py
diff options
context:
space:
mode:
Diffstat (limited to 'troveclient/v1/shell.py')
-rw-r--r--troveclient/v1/shell.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/troveclient/v1/shell.py b/troveclient/v1/shell.py
index 4c6ffd7..f4447c6 100644
--- a/troveclient/v1/shell.py
+++ b/troveclient/v1/shell.py
@@ -827,6 +827,14 @@ def _parse_instance_options(cs, instance_options, for_grow=False):
nics, instance_opts = _get_networks(instance_opts)
if nics:
+ for nic in nics:
+ # replaces net-id with network_id
+ if 'net-id' in nic:
+ nic['network_id'] = nic.pop('net-id')
+ if 'subnet-id' in nic:
+ nic['subnet_id'] = nic.pop('subnet-id')
+ if 'ip-address' in nic:
+ nic['ip_address'] = nic.pop('ip-address')
instance_info["nics"] = nics
availability_zone, instance_opts = _get_availability_zone(