diff options
author | Lars Wirzenius <liw@liw.fi> | 2022-01-21 08:58:47 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2022-01-21 08:58:47 +0200 |
commit | 1fd70189973f247c4fab3e426151cda4e912e8ed (patch) | |
tree | a53e82bca6e7e53c1ce0f30112aba60f26f9e48e /subplot/vmadm.yaml | |
parent | aeabf043ae323bdb7b644a22ecd93a4658862c06 (diff) | |
download | vmadm-1fd70189973f247c4fab3e426151cda4e912e8ed.tar.gz |
refactor: use lib/runcmd's steps instead of custom ones
Subplot's lib/runcmd provides a "when I run ..." step that we can use,
instead of having a custom "when I invoke ..." step. Less code, fewer
bugs.
Sponsored-by: author
Diffstat (limited to 'subplot/vmadm.yaml')
-rw-r--r-- | subplot/vmadm.yaml | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/subplot/vmadm.yaml b/subplot/vmadm.yaml index 4c64a9b..4fe5e0c 100644 --- a/subplot/vmadm.yaml +++ b/subplot/vmadm.yaml @@ -8,37 +8,6 @@ python: function: ensure_base_image -- when: "I invoke vmadm cloud-init --config {config} {filename} {dirname}" - impl: - python: - function: invoke_cloud_init - -- when: "I invoke vmadm new --config {config} {filename}" - impl: - python: - function: create_vm - cleanup: delete_vm - -- when: "I invoke vmadm delete --config {config} {filename}" - impl: - python: - function: delete_vm - -- when: "I invoke vmadm shutdown --config {config} {filename}" - impl: - python: - function: shutdown_vm - -- when: "I invoke vmadm start --config {config} {filename}" - impl: - python: - function: start_vm - -- when: "I invoke ssh -F {config} {target} {args:text}" - impl: - python: - function: run_hostname_over_ssh - - then: "directories {actual} and {expected} are identical" impl: python: |