Skip to content

Commit

Permalink
Merge pull request #395 from rackerlabs/fix-bmc-workflow
Browse files Browse the repository at this point in the history
fix: Rename main function for calling by poetry scafolding
  • Loading branch information
cardoe authored Oct 23, 2024
2 parents f86509c + 9982ed1 commit 547ea14
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def _create_secret(data):
)


def main(program_name, ip_address=None):
def perform_action(program_name, ip_address=None):
"""This is intended for use by an Argo Workflow.
It will generate BMC credentials for the given BMC IP address.
Expand Down Expand Up @@ -62,4 +62,5 @@ def main(program_name, ip_address=None):
f.write(secret_name)


main(*sys.argv)
def main():
perform_action(*sys.argv)

0 comments on commit 547ea14

Please sign in to comment.