You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: scripts/storage/secondary/cloud-install-sys-tmplt
+11-6Lines changed: 11 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -24,17 +24,22 @@ usage() {
24
24
printf"\nUsage: %s:\n\t-m secondary storage mount point\n\t-u http url for system vm template\n\t-h hypervisor name: kvm|vmware|xenserver|hyperv|ovm3\n\t-s mgmt server secret key\n\n"$(basename $0)>&2
25
25
}
26
26
27
+
# Usage: e.g. failed $? "this is an error"
27
28
failed() {
28
-
if [[ -z$2 ]];then
29
+
local returnval=$1
30
+
local returnmsg=$2
31
+
32
+
# check for an message, if there is no one dont print anything
0 commit comments