Skip to content

Commit af2802e

Browse files
Merge branch 'develop' into feature/ENG-23767_backup_all_by_type
2 parents 656a608 + 9975000 commit af2802e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

onefuse/backups.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,10 +236,10 @@ def backup_policies(self, backups_path: str, type: str = None):
236236
policy_types = [type]
237237
else:
238238
error_string = (
239-
f'Policy type not found. Type {type} should be one of {policy_types}'
239+
f"Type not found. Type '{type}' should be oe of {policy_types}"
240240
)
241241
raise OneFuseError(error_string)
242-
for policy_type in policy_types:
242+
for policy_type in self.policy_types:
243243
self.ofm.logger.info(f'Backing up policy_type: {policy_type}')
244244
response = self.ofm.get(f'/{policy_type}/')
245245
next_exists = self.create_json_files(response, policy_type,

0 commit comments

Comments
 (0)