Skip to content

Commit be7e10e

Browse files
skip cluster status change if cluster=readonly
1 parent 0fe8880 commit be7e10e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

simplyblock_core/services/storage_node_monitor.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,8 @@ def update_cluster_status(cluster_id):
114114
cluster = db_controller.get_cluster_by_id(cluster_id)
115115
current_cluster_status = cluster.status
116116
logger.info("cluster_status: %s", current_cluster_status)
117-
if current_cluster_status in [Cluster.STATUS_READONLY, Cluster.STATUS_UNREADY, Cluster.STATUS_IN_ACTIVATION]:
117+
if current_cluster_status in [
118+
Cluster.STATUS_READONLY, Cluster.STATUS_UNREADY, Cluster.STATUS_IN_ACTIVATION, Cluster.STATUS_READONLY]:
118119
return
119120

120121
next_current_status = get_next_cluster_status(cluster_id)

0 commit comments

Comments
 (0)