[Bug-Fix] use project_id while creating networks via nova-net

Change-Id: Ia132d7ba5530a8067e5b0776cb2cc383f0503592
Closes-Bug: #1492960
This commit is contained in:
Andrey Kurilin 2015-09-07 16:14:01 +03:00
parent 9d23499ef1
commit caefe3ffa7
2 changed files with 2 additions and 2 deletions

View File

@ -137,7 +137,7 @@ class NovaNetworkWrapper(NetworkWrapper):
cidr = self._generate_cidr()
label = utils.generate_random_name("rally_net_")
network = self.client.networks.create(
tenant_id=tenant_id, cidr=cidr, label=label)
project_id=tenant_id, cidr=cidr, label=label)
return self._marshal_network_object(network)
def delete_network(self, network):

View File

@ -79,7 +79,7 @@ class NovaNetworkWrapperTestCase(test.TestCase):
mock_generate_random_name.assert_called_once_with("rally_net_")
service._generate_cidr.assert_called_once_with()
service.client.networks.create.assert_called_once_with(
tenant_id="foo_tenant", cidr="foo_cidr", label="foo_name")
project_id="foo_tenant", cidr="foo_cidr", label="foo_name")
def test_delete_network(self):
service = self.get_wrapper()