Skip to content

Commit 2dee964

Browse files
committed
Correcting error messages
1 parent 4ac2e27 commit 2dee964

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

simplyblock_core/controllers/lvol_controller.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -910,7 +910,7 @@ def delete_lvol(id_or_name, force_delete=False):
910910
if is_node_leader(host_node, lvol.lvs_name):
911911
primary_node = host_node
912912
if sec_node.status == StorageNode.STATUS_DOWN:
913-
msg = f"Secondary node is in down status, can not create lvol"
913+
msg = f"Secondary node is in down status, can not delete lvol"
914914
logger.error(msg)
915915
return False, msg
916916
elif sec_node.status == StorageNode.STATUS_ONLINE:
@@ -1227,7 +1227,7 @@ def resize_lvol(id, new_size):
12271227
if is_node_leader(host_node, lvol.lvs_name):
12281228
primary_node = host_node
12291229
if sec_node.status == StorageNode.STATUS_DOWN:
1230-
msg = f"Secondary node is in down status, can not create lvol"
1230+
msg = f"Secondary node is in down status, can not resize lvol"
12311231
logger.error(msg)
12321232
error = True
12331233

simplyblock_core/controllers/snapshot_controller.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ def delete(snapshot_uuid, force_delete=False):
292292
if lvol_controller.is_node_leader(host_node, snap.lvol.lvs_name):
293293
primary_node = host_node
294294
if sec_node.status == StorageNode.STATUS_DOWN:
295-
msg = f"Secondary node is in down status, can not create lvol"
295+
msg = f"Secondary node is in down status, can not delete snapshot"
296296
logger.error(msg)
297297
return False
298298

simplyblock_core/env_var

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
SIMPLY_BLOCK_COMMAND_NAME=sbcli-down
2-
SIMPLY_BLOCK_VERSION=0.4.2
2+
SIMPLY_BLOCK_VERSION=0.4.3
33

44
SIMPLY_BLOCK_DOCKER_IMAGE=public.ecr.aws/simply-block/simplyblock:down
55
DOCKER_USER=hamdysimplyblock

0 commit comments

Comments
 (0)