Skip to content

Commit

Permalink
Employs friendly_name for BackupInstanceResource
Browse files Browse the repository at this point in the history
  • Loading branch information
Valentin J. Hauner committed Jan 27, 2023
1 parent 4866f57 commit 61ee5af
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hybridcloud/backends/azureblob.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,7 @@ def create_or_update_bucket(self, namespace, name, spec):

backup_properties = BackupInstanceResource(
properties=BackupInstance(
friendly_name=bucket_name,
policy_info=PolicyInfo(
policy_id=policy_id
),
Expand All @@ -252,7 +253,7 @@ def create_or_update_bucket(self, namespace, name, spec):
self._logger.info("self._location: %s", self._location)
self._logger.info("self._resource_group: %s", self._resource_group)
self._logger.info("bucket_name: %s", bucket_name)
self._logger.info("backup_properties: %s", ', '.join("%s: %s" % item for item in vars(backup_properties).items()))
self._logger.info("backup_properties: %s", dir(backup_properties))

self._backup_client.backup_instances.begin_create_or_update(
resource_group_name=self._resource_group,
Expand Down

0 comments on commit 61ee5af

Please sign in to comment.