Test operation
This commit is contained in:
parent
8981d52105
commit
c7373e2146
|
@ -1,4 +1,4 @@
|
||||||
vn-vmware (1.0.24) stable; urgency=low
|
vn-vmware (1.0.25) stable; urgency=low
|
||||||
|
|
||||||
* Initial Release.
|
* Initial Release.
|
||||||
|
|
||||||
|
|
|
@ -22,7 +22,7 @@ use constant true => 1;
|
||||||
my %opts = (
|
my %opts = (
|
||||||
'operation' => {
|
'operation' => {
|
||||||
type => "=s",
|
type => "=s",
|
||||||
help => "Operation to perform: backup-job, clone-job, backup, rotate, clone, snapshot, migrate",
|
help => "Operation to perform: backup-job, clone-job, backup, rotate, clone, snapshot, migrate, test",
|
||||||
required => true
|
required => true
|
||||||
},
|
},
|
||||||
'job' => {
|
'job' => {
|
||||||
|
@ -276,6 +276,9 @@ sub main {
|
||||||
open_machine();
|
open_machine();
|
||||||
migrate_machine();
|
migrate_machine();
|
||||||
}
|
}
|
||||||
|
when ('test') {
|
||||||
|
log_message "Test operation, doing nothing.";
|
||||||
|
}
|
||||||
default {
|
default {
|
||||||
die "Unknown operation '$operation'.";
|
die "Unknown operation '$operation'.";
|
||||||
}
|
}
|
||||||
|
|
Reference in New Issue