Skip to content

Commit

Permalink
Trivial fix of reporting the failed to drain of a node. (#52)
Browse files Browse the repository at this point in the history
When a drain fails, the error message rendering had an error in
it and then crashed trying to render the error message.
  • Loading branch information
Michael-Sinz authored Jan 28, 2021
1 parent abc939b commit d7864b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vmss-prototype/vmss-prototype
Original file line number Diff line number Diff line change
Expand Up @@ -703,7 +703,7 @@ def vmss_prototype_update(sub_args):

if rc != 0:
if not sub_args.force:
fatal_error('Could not drain node {0}', target_node)
fatal_error('Could not drain node {0}'.format(target_node))

# Move any none-daemonset (or node) pods off of this node that have not
# drained (they should have drained already but just in case)
Expand Down

0 comments on commit d7864b8

Please sign in to comment.