Skip to content

Commit

Permalink
MY_NODE_CLASS is not always in the environment. (#524)
Browse files Browse the repository at this point in the history
This fixes tezos-signer and activate-jobs run their config-generator without errors.
  • Loading branch information
elric1 authored Dec 17, 2022
1 parent 4a9f84d commit bf55219
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/config-generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
# MY_POD_CLASS is not set after iterating nodes configurations,
# this can happen when the pod is one which scaled out by autoscaler.
# Set this value to the value mapped by MY_NODE_CLASS to read possible config specified in at NODES
if not MY_POD_CLASS:
if not MY_POD_CLASS and "MY_NODE_CLASS" in os.environ:
my_node_class = os.environ["MY_NODE_CLASS"]
MY_POD_CLASS = NODES[my_node_class]

Expand Down

0 comments on commit bf55219

Please sign in to comment.