Fix sec group exception with sriov option

Change-Id: I6cebc0a288dfc6a1397c6e9e0bb58c905c802c6d
This commit is contained in:
ahothan 2016-03-15 09:44:23 -07:00
parent edf27a0ff4
commit e9216b2dbc

View File

@ -92,7 +92,7 @@ class Instance(object):
if self.config.vnic_type: if self.config.vnic_type:
# create the VM by passing a port ID instead of a net ID # create the VM by passing a port ID instead of a net ID
self.port = self.net.create_port(int_net['id'], self.port = self.net.create_port(int_net['id'],
[sec_group.id], [sec_group['id']],
self.config.vnic_type) self.config.vnic_type)
nics = [{'port-id': self.port['id']}] nics = [{'port-id': self.port['id']}]
# no need to create server with a security group since # no need to create server with a security group since