Skip to content

Commit

Permalink
add credential scopes to resourceGroupPreparer
Browse files Browse the repository at this point in the history
  • Loading branch information
swathipil committed Mar 11, 2023
1 parent 85046fe commit b6718e5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def _prefix_name(self, name):

def create_resource(self, name, **kwargs):
if self.is_live and self._need_creation:
self.client = self.create_mgmt_client(ResourceManagementClient, base_url=BASE_URL)
self.client = self.create_mgmt_client(ResourceManagementClient, base_url=BASE_URL, credential_scopes=CREDENTIAL_SCOPES)
parameters = {"location": self.location}
expiry = datetime.datetime.utcnow() + self.delete_after_tag_timedelta
parameters["tags"] = {"DeleteAfter": expiry.replace(microsecond=0).isoformat()}
Expand Down

0 comments on commit b6718e5

Please sign in to comment.