Skip to content

Commit

Permalink
remove unnecessary headers (#1345)
Browse files Browse the repository at this point in the history
  • Loading branch information
xuzhang3 authored Nov 23, 2023
1 parent c7244a9 commit 42cee7e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
4 changes: 1 addition & 3 deletions plugins/modules/azure_rm_adapplication.py
Original file line number Diff line number Diff line change
Expand Up @@ -693,7 +693,6 @@ async def get_application_by_app_id(self, app_id):
request_configuration = ApplicationsRequestBuilder.ApplicationsRequestBuilderGetRequestConfiguration(
query_parameters=ApplicationsRequestBuilder.ApplicationsRequestBuilderGetQueryParameters(
filter=(" appId eq '{0}'".format(app_id)), ),
headers={'ConsistencyLevel': "eventual"},
)

return await self._client.applications.get(request_configuration=request_configuration)
Expand All @@ -704,8 +703,7 @@ async def delete_application(self, obj_id):
async def get_applications(self, filters):
request_configuration = ApplicationsRequestBuilder.ApplicationsRequestBuilderGetRequestConfiguration(
query_parameters=ApplicationsRequestBuilder.ApplicationsRequestBuilderGetQueryParameters(
filter=(' and '.join(filters)),
headers={'ConsistencyLevel': "eventual"}
filter=(' and '.join(filters))
))
return await self._client.applications.get(request_configuration=request_configuration)

Expand Down
1 change: 0 additions & 1 deletion plugins/modules/azure_rm_adapplication_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,6 @@ async def get_applications(self, sub_filters):
query_parameters=ApplicationsRequestBuilder.ApplicationsRequestBuilderGetQueryParameters(
filter=(' and '.join(sub_filters)),
),
headers={'ConsistencyLevel': "eventual"},
)
return await self._client.applications.get(request_configuration=request_configuration)
else:
Expand Down

0 comments on commit 42cee7e

Please sign in to comment.