Skip to content

Commit

Permalink
update for the new SDK release
Browse files Browse the repository at this point in the history
  • Loading branch information
gtema committed Sep 26, 2019
1 parent c671e6e commit 3b56141
Show file tree
Hide file tree
Showing 10 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions otcextensions/sdk/auto_scaling/v1/_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def _get_next_link(cls, uri, response, data, marker, limit, total_yielded):
params['limit'] = limit
else:
next_link = None
query_params = cls._query_mapping._transpose(params)
query_params = cls._query_mapping._transpose(params, cls)
return next_link, query_params

@staticmethod
Expand Down Expand Up @@ -136,7 +136,7 @@ def list_ext(cls, session, paginated=False,
uri_params = {'scaling_group_id': scaling_group_id}

cls._query_mapping._validate(params, base_path=cls.base_path)
query_params = cls._query_mapping._transpose(params)
query_params = cls._query_mapping._transpose(params, cls)
uri = None
if not hasattr(cls, 'list_path'):
uri = cls.base_path % uri_params
Expand Down
2 changes: 1 addition & 1 deletion otcextensions/sdk/cce/v1/cluster_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ def list(cls, session,
session = cls._get_session(session)

# cls._query_mapping._validate(params, base_path=cls.base_path)
query_params = cls._query_mapping._transpose(params)
query_params = cls._query_mapping._transpose(params, cls)
uri = cls.base_path % params

# Build additional arguments to the GET call
Expand Down
2 changes: 1 addition & 1 deletion otcextensions/sdk/cce/v3/cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ def list(cls, session, paginated=True, base_path=None, **params):
if base_path is None:
base_path = cls.base_path
cls._query_mapping._validate(params, base_path=base_path)
query_params = cls._query_mapping._transpose(params)
query_params = cls._query_mapping._transpose(params, cls)
uri = base_path % params

while uri:
Expand Down
2 changes: 1 addition & 1 deletion otcextensions/sdk/cce/v3/cluster_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ def list(cls, session, paginated=True, base_path=None, **params):
if base_path is None:
base_path = cls.base_path
cls._query_mapping._validate(params, base_path=base_path)
query_params = cls._query_mapping._transpose(params)
query_params = cls._query_mapping._transpose(params, cls)
uri = base_path % params

while uri:
Expand Down
2 changes: 1 addition & 1 deletion otcextensions/sdk/css/v1/flavor.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def list(cls, session, paginated=True, base_path=None, **params):
if base_path is None:
base_path = cls.base_path
cls._query_mapping._validate(params, base_path=base_path)
query_params = cls._query_mapping._transpose(params)
query_params = cls._query_mapping._transpose(params, cls)
uri = base_path % params

# Copy query_params due to weird mock unittest interactions
Expand Down
2 changes: 1 addition & 1 deletion otcextensions/sdk/dms/v1/group_message.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def list(cls, session, paginated=False, **params):
# style, allow user to pass mulitple tags as the query parameters
# which can not leverage method of session directlly.

query_params = cls._query_mapping._transpose(params)
query_params = cls._query_mapping._transpose(params, cls)
resp = session.get(
uri,
headers=headers,
Expand Down
2 changes: 1 addition & 1 deletion otcextensions/sdk/obs/v1/container.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def list(cls, session, paginated=False,
raise exceptions.MethodNotSupported(cls, "list")

cls._query_mapping._validate(params, base_path=cls.base_path)
query_params = cls._query_mapping._transpose(params)
query_params = cls._query_mapping._transpose(params, cls)

response = session.get(
session.get_endpoint(),
Expand Down
2 changes: 1 addition & 1 deletion otcextensions/sdk/obs/v1/obj.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def list(cls, session, paginated=False,
raise exceptions.MethodNotSupported(cls, "list")

cls._query_mapping._validate(params, base_path=cls.base_path)
query_params = cls._query_mapping._transpose(params)
query_params = cls._query_mapping._transpose(params, cls)
uri = cls.base_path % params

# Build additional arguments to the GET call
Expand Down
4 changes: 2 additions & 2 deletions otcextensions/sdk/sdk_resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ def list(cls, session, paginated=False,
session = cls._get_session(session)

cls._query_mapping._validate(params, base_path=cls.base_path)
query_params = cls._query_mapping._transpose(params)
query_params = cls._query_mapping._transpose(params, cls)
uri = cls.base_path % params

limit = query_params.get('limit')
Expand Down Expand Up @@ -466,7 +466,7 @@ def list_ext(cls, session, paginated=False,
print('got params %s' % params)

cls._query_mapping._validate(params, base_path=cls.base_path)
query_params = cls._query_mapping._transpose(params)
query_params = cls._query_mapping._transpose(params, cls)
uri = None
if not hasattr(cls, 'list_path'):
uri = cls.base_path % uri_params
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
# of appearance. Changing the order has an impact on the overall integration
# process, which may cause wedges in the gate later.

openstacksdk>=0.29.0 # Apache-2.0
openstacksdk>=0.36.0 # Apache-2.0
oslo.i18n>3.15.3 # Apache-2.0

0 comments on commit 3b56141

Please sign in to comment.