Issue Some "pipe" commands work incorrect with --user|-u option - fix for `pipe storage create` operation error message
@@ -154,6 +154,7 @@ class DataStorageOperations(object):
@classmethod
def save_data_storage(cls, name, description, sts_duration, lts_duration, versioning,
backup_duration, type, parent_folder, on_cloud, path, region_id):
+ try:
directory = None
if parent_folder:
directory = Folder.load(parent_folder)
@@ -169,7 +170,6 @@ class DataStorageOperations(object):
except ValueError:
click.echo("Error: Given region id '{}' is not a number.".format(region_id))
sys.exit(1)
- try:
DataStorage.save(name, path, description, sts_duration, lts_duration, versioning, backup_duration, type,
directory.id if directory else None, on_cloud, region_id)
except ALL_ERRORS as error:
