Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/lib/cirros/ds/configdrive
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ SEED_POST_D="/var/lib/cloud/seed/configdrive"

Usage() {
cat <<EOF
Usage: ${0##*/} mode output_d
Usage: ${0##*/} mode output_dir

Datasource for openstack config drive
EOF
Expand Down Expand Up @@ -168,7 +168,7 @@ while [ $# -ne 0 ]; do
shift;
done

[ $# -eq 2 ] || bad_Usage "must provide mode and output dir"
[ $# -eq 2 ] || bad_Usage "must provide mode and output_dir"

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

here I would leave as it was

mode="$1"
out_d="$2"

Expand Down
4 changes: 2 additions & 2 deletions src/lib/cirros/ds/ec2
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ fail() { [ $# -eq 0 ] || error "$@"; exit 1; }

Usage() {
cat <<EOF
Usage: ${0##*/} mode output_d
Usage: ${0##*/} mode output_dir

Datasource for EC2 metadata service
Requires network.
Expand Down Expand Up @@ -110,7 +110,7 @@ while [ $# -ne 0 ]; do
shift;
done

[ $# -eq 2 ] || bad_Usage "must provide mode and data dir"
[ $# -eq 2 ] || bad_Usage "must provide mode and output_dir"

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

similar here (with s/data/output/)

mode="$1"
out_d="$2"

Expand Down
4 changes: 2 additions & 2 deletions src/lib/cirros/ds/nocloud
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ LABEL="cidata"

Usage() {
cat <<EOF
Usage: ${0##*/} mode output_d
Usage: ${0##*/} mode output_dir

Datasource for 'nocloud' config disk.
EOF
Expand Down Expand Up @@ -130,7 +130,7 @@ while [ $# -ne 0 ]; do
shift;
done

[ $# -eq 2 ] || bad_Usage "must provide mode and output dir"
[ $# -eq 2 ] || bad_Usage "must provide mode and output_dir"

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and here

mode="$1"
out_d="$2"

Expand Down