Skip to content

Commit

Permalink
Fix dict iteration for Python2/3
Browse files Browse the repository at this point in the history
  • Loading branch information
karthikeyan-dhandapani committed Feb 2, 2021
1 parent 1e329fa commit c057b3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion module_utils/aos_http.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def get_query_params(self):
offset=self._module.params.get('offset'),
total=self._module.params.get('total')
)
query_params.update({key: value for key, value in params.iteritems() if value is not None})
query_params.update({key: value for key, value in params.items() if value is not None})
return query_params

def get_url(self, url, params=None):
Expand Down

0 comments on commit c057b3d

Please sign in to comment.