diff --git a/VirtualMachineService/VirtualMachineHandler.py b/VirtualMachineService/VirtualMachineHandler.py index 80e2a217..d5cd840f 100644 --- a/VirtualMachineService/VirtualMachineHandler.py +++ b/VirtualMachineService/VirtualMachineHandler.py @@ -1166,8 +1166,10 @@ def add_security_group_to_server(self, http, https, udp, server_id): https=https, http=http, description="UDP" ) - self.conn.add_server_security_groups( - server=server, security_groups=[security_group] + self.logger.info(security_group) + self.logger.info("Add security group {} to server {} ".format(security_group.id, server_id)) + self.conn.compute.add_security_group_to_server( + server=server_id, security_group=security_group ) return True