From: Mohamed Larabi Date: Tue, 28 May 2013 13:25:35 +0000 (+0200) Subject: pldriver: specifie the rspec version for the describe call within perform_operation_a... X-Git-Tag: sfa-3.0-1~42 X-Git-Url: http://git.onelab.eu/?p=sfa.git;a=commitdiff_plain;h=9a54f17887543b8a3b79975136ce1be556782e53 pldriver: specifie the rspec version for the describe call within perform_operation_action --- diff --git a/sfa/planetlab/pldriver.py b/sfa/planetlab/pldriver.py index 4e515ff0..8b02d349 100644 --- a/sfa/planetlab/pldriver.py +++ b/sfa/planetlab/pldriver.py @@ -746,7 +746,7 @@ class PlDriver (Driver): raise UnsupportedOperation(action) # fault if sliver is not full allocated (operational status is geni_pending_allocation) - description = self.describe(urns, None, options) + description = self.describe(urns, 'GENI 3', options) for sliver in description['geni_slivers']: if sliver['geni_operational_status'] == 'geni_pending_allocation': raise UnsupportedOperation(action, "Sliver must be fully allocated (operational status is not geni_pending_allocation)") @@ -754,7 +754,7 @@ class PlDriver (Driver): # Perform Operational Action Here # - geni_slivers = self.describe(urns, None, options)['geni_slivers'] + geni_slivers = self.describe(urns, 'GENI 3', options)['geni_slivers'] return geni_slivers # set the 'enabled' tag to 0