From df1ef30cf697006ac189a67bd9cab07d5800930e Mon Sep 17 00:00:00 2001 From: micafer Date: Fri, 11 Mar 2016 09:23:27 +0100 Subject: [PATCH] Add extra to FogBow connector --- IM/connectors/FogBow.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/IM/connectors/FogBow.py b/IM/connectors/FogBow.py index 527d9590a..4e5eb23c6 100644 --- a/IM/connectors/FogBow.py +++ b/IM/connectors/FogBow.py @@ -213,6 +213,10 @@ def updateVMInfo(self, vm, auth_data): if len(parts) > 1: vm.setSSHPort(int(parts[1])) + extra_ports = self.get_occi_attribute_value(output, 'org.fogbowcloud.request.extra-ports') + if extra_ports: + vm.info.systems[0].addFeature(Feature("fogbow.extra-ports", "=", extra_ports), conflict="other", missing="other") + ssh_user = self.get_occi_attribute_value(output, 'org.fogbowcloud.request.ssh-username') if ssh_user: vm.info.systems[0].addFeature(Feature("disk.0.os.credentials.username", "=", ssh_user), conflict="other", missing="other")