Skip to content

Commit

Permalink
based on PR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
mudakavip committed Sep 4, 2024
1 parent b5c1d07 commit 598deaa
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,16 @@ spec:
value: "{}"
templates:
- name: main
input:
parameters:
- name: interface_update_event
output:
parameters:
- name: server_state
valueFrom:
expression: "{{ steps.sync-server.outputs.parameters.result }}"
steps:
- - name: sync-server
container:
input:

Check failure on line 17 in argo-workflows/sync-nb-server-to-ironic/workflowtemplates/sync-server-to-ironic.yaml

View workflow job for this annotation

GitHub Actions / lint-yaml

17:9 syntax error: expected <block end>, but found '?' (syntax)

Check failure on line 17 in argo-workflows/sync-nb-server-to-ironic/workflowtemplates/sync-server-to-ironic.yaml

View workflow job for this annotation

GitHub Actions / lint-yaml

17:9 syntax error: expected <block end>, but found '?' (syntax)
parameters:

Check failure on line 18 in argo-workflows/sync-nb-server-to-ironic/workflowtemplates/sync-server-to-ironic.yaml

View workflow job for this annotation

GitHub Actions / lint-yaml

18:11 [indentation] wrong indentation: expected 12 but found 10

Check failure on line 18 in argo-workflows/sync-nb-server-to-ironic/workflowtemplates/sync-server-to-ironic.yaml

View workflow job for this annotation

GitHub Actions / lint-yaml

18:11 [indentation] wrong indentation: expected 12 but found 10
- name: interface_update_event
output:
parameters:
- name: server_state
value: "{{ steps.sync-server.outputs.parameters.result.server_state }}"
container:
image: ghcr.io/rackerlabs/understack/ironic-nautobot-client:latest
command:
- sync-server
Expand All @@ -32,7 +31,7 @@ spec:
- mountPath: /etc/ironic-secrets/
name: ironic-secrets
readOnly: true
volumes:
- name: ironic-secrets
secret:
volumes:
- name: ironic-secrets
secret:
secretName: production-ironic-for-argo-creds
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def main():
f"Device {node.uuid} is in a {ironic_node.provision_state} "
f"provision_state, so the updates are not allowed."
)
return ironic_node.provision_state
sys.exit(0)

drac_ip = update_data["ip_addresses"][0]["host"]
expected_address = f"https://{drac_ip}"
Expand Down Expand Up @@ -81,4 +81,4 @@ def main():


if __name__ == "__main__":
main()
sys.stdout.write(main())

0 comments on commit 598deaa

Please sign in to comment.