X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=plstackapi%2Fcore%2Fmodels%2Fslice.py;h=5a5f16507245b20f0251d220489905c845ed5fe0;hb=5d0ce61ef2d155d8c282f74d6e103c1a0f6d9bb2;hp=dc2fc63847182d9079782d887e6c896bb2e9e227;hpb=0c0e05d33859e34cf1b0cd6644ed6c884db44692;p=plstackapi.git diff --git a/plstackapi/core/models/slice.py b/plstackapi/core/models/slice.py index dc2fc63..5a5f165 100644 --- a/plstackapi/core/models/slice.py +++ b/plstackapi/core/models/slice.py @@ -34,6 +34,11 @@ class Slice(PlCoreBase): # give caller an admin role at the tenant they've created self.driver.add_user_role(self.caller.user_id, tenant.id, 'admin') + # refresh credentials using this tenant + self.driver.shell.connect(username=self.driver.shell.keystone.username, + password=self.driver.shell.keystone.password, + tenant=tenant.name) + # create network network = self.driver.create_network(self.name) self.network_id = network['id']