Skip to content
This repository has been archived by the owner on Feb 8, 2024. It is now read-only.

Commit

Permalink
CORTX-33855: remove extra arrow from update provisioning status (#6398)
Browse files Browse the repository at this point in the history
* CORTX-33855: remove extra arrow from update provisioning status

Signed-off-by: Tanuja Shinde <tanuja.shinde@seagate.com>

* CORTX-33855: remove extra arrow from update provisioning status

Signed-off-by: Tanuja Shinde <tanuja.shinde@seagate.com>

* CORTX-33855: remove extra arrow from update provisioning status

Signed-off-by: Tanuja Shinde <tanuja.shinde@seagate.com>
  • Loading branch information
tanujashinde0405 authored Aug 4, 2022
1 parent bfe5204 commit fcee94d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/provisioner/provisioner.py
Original file line number Diff line number Diff line change
Expand Up @@ -467,16 +467,16 @@ def _update_provisioning_status(cortx_conf: MappedConf, node_id: str,
node_id: machine-id
phase: deployment/upgrade
status: default/progress/success/error."""
key_prefix = f'node>{node_id}>provisioning>'
keys = [(key_prefix + 'phase', phase), (key_prefix + 'status', status)]
key_prefix = f'node>{node_id}>provisioning'
keys = [(key_prefix + '>' + 'phase', phase), (key_prefix + '>' + 'status', status)]
cortx_conf.set_kvs(keys)

# TODO: Remove the following section once gconf is moved to consul completely.
CortxProvisioner._load_consul_conf(CortxProvisioner._cortx_gconf_consul_index)
Conf.set(CortxProvisioner._cortx_gconf_consul_index, f'{key_prefix}>phase', phase)
Conf.set(CortxProvisioner._cortx_gconf_consul_index, f'{key_prefix}>status', status)
if phase is ProvisionerStages.DEPLOYMENT.value:
cortx_conf.set(f'node>{node_id}>provisioning>time', int(time.time()))
cortx_conf.set(f'{key_prefix}>time', int(time.time()))
Conf.set(CortxProvisioner._cortx_gconf_consul_index, f'{key_prefix}>time', int(time.time()))
Conf.save(CortxProvisioner._cortx_gconf_consul_index)

Expand Down

0 comments on commit fcee94d

Please sign in to comment.