Skip to content

Commit

Permalink
Invoke python script via poetry (consist with other workflows)
Browse files Browse the repository at this point in the history
  • Loading branch information
Steve Keay committed Oct 23, 2024
1 parent a74fbbf commit 5a914f5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions python/understack-workflows/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ sync-nautobot-system-info = "understack_workflows.main.sync_nautobot_system_info
undersync-switch = "understack_workflows.main.undersync_switch:main"
undersync-device = "understack_workflows.main.undersync_device:main"
nautobot-update-cf = "understack_workflows.main.nautobot_update_cf:main"
get-standard-bmc-creds = "understack_workflows.main.get_standard_bmc_creds:main"

[tool.setuptools.packages.find]
# avoid packaging up our tests
Expand Down
6 changes: 4 additions & 2 deletions workflows/argo-events/workflowtemplates/get-bmc-creds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,10 @@ spec:
path: "/tmp/output.txt"
container:
image: ghcr.io/rackerlabs/understack/ironic-nautobot-client:latest
command: [python]
args: ["/app/get_standard_bmc_creds.py", "{{inputs.parameters.ip_address}}"]
command:
- get-standard-bmc-creds
args:
- "{{inputs.parameters.ip_address}}"
env:
- name: BMC_MASTER
valueFrom:
Expand Down

0 comments on commit 5a914f5

Please sign in to comment.