diff options
author | Steve Martinelli <stevemar@ca.ibm.com> | 2016-01-25 01:48:16 -0500 |
---|---|---|
committer | Steve Martinelli <stevemar@ca.ibm.com> | 2016-01-25 01:54:35 -0500 |
commit | 81fdaabf3fd73b6ed7fc8e8b4eb550d9206c017a (patch) | |
tree | 56d7cafd244a46fac39c75b94b2b55d38d475217 /keystoneclient/v3/endpoints.py | |
parent | 056740cd2d0513c7f79d459c8c78c3133c43adef (diff) | |
download | python-keystoneclient-81fdaabf3fd73b6ed7fc8e8b4eb550d9206c017a.tar.gz |
use positional library instead of utils
swap instances of utils.positional with the positional library.
Change-Id: Id8a9961e68d287a802f25512fc970829e9feb5c2
Diffstat (limited to 'keystoneclient/v3/endpoints.py')
-rw-r--r-- | keystoneclient/v3/endpoints.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/keystoneclient/v3/endpoints.py b/keystoneclient/v3/endpoints.py index 56c2d60..1be1e22 100644 --- a/keystoneclient/v3/endpoints.py +++ b/keystoneclient/v3/endpoints.py @@ -14,10 +14,11 @@ # License for the specific language governing permissions and limitations # under the License. +from positional import positional + from keystoneclient import base from keystoneclient import exceptions from keystoneclient.i18n import _ -from keystoneclient import utils VALID_INTERFACES = ['public', 'admin', 'internal'] @@ -50,7 +51,7 @@ class EndpointManager(base.CrudManager): msg = msg % ', '.join(VALID_INTERFACES) raise exceptions.ValidationError(msg) - @utils.positional(1, enforcement=utils.positional.WARN) + @positional(1, enforcement=positional.WARN) def create(self, service, url, interface=None, region=None, enabled=True, **kwargs): self._validate_interface(interface) @@ -66,7 +67,7 @@ class EndpointManager(base.CrudManager): return super(EndpointManager, self).get( endpoint_id=base.getid(endpoint)) - @utils.positional(enforcement=utils.positional.WARN) + @positional(enforcement=positional.WARN) def list(self, service=None, interface=None, region=None, enabled=None, region_id=None, **kwargs): """List endpoints. @@ -85,7 +86,7 @@ class EndpointManager(base.CrudManager): enabled=enabled, **kwargs) - @utils.positional(enforcement=utils.positional.WARN) + @positional(enforcement=positional.WARN) def update(self, endpoint, service=None, url=None, interface=None, region=None, enabled=None, **kwargs): self._validate_interface(interface) |