]> xenbits.xensource.com Git - people/liuw/osstest.git/commitdiff
xl: Use _VerboseCommand for save/restore/migrate
authorIan Campbell <ian.campbell@citrix.com>
Fri, 17 Jul 2015 13:17:34 +0000 (14:17 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Tue, 28 Jul 2015 14:30:21 +0000 (15:30 +0100)
Additional logging is as useful here as for create.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Osstest/Toolstack/xl.pm

index 3c3d348a63153c06d87c54118baf5a307540f33a..becda7db9b31440e9e5cb96939eb6564c126aff4 100644 (file)
@@ -76,7 +76,7 @@ sub migrate ($$$$) {
     my $dst = $dho->{Name};
     my $gn = $gho->{Name};
     target_cmd_root($sho,
-                   $self->{_Command}." migrate $gn $dst",
+                   $self->{_VerboseCommand}." migrate $gn $dst",
                    $timeout);
 }
 
@@ -84,7 +84,7 @@ sub save ($$$$) {
     my ($self,$gho,$f,$timeout) = @_;
     my $ho = $self->{Host};
     my $gn = $gho->{Name};
-    target_cmd_root($ho,$self->{_Command}." save $gn $f", $timeout);
+    target_cmd_root($ho,$self->{_VerboseCommand}." save $gn $f", $timeout);
 }
 
 sub restore ($$$$) {
@@ -93,7 +93,7 @@ sub restore ($$$$) {
     my $gn = $gho->{Name};
     my $cfg = $self->{RestoreNeedsConfig} ? $gho->{CfgPath} : '';
     target_cmd_root($ho,
-                   $self->{_Command}
+                   $self->{_VerboseCommand}
                    ." restore "
                    .$cfg
                    ." $f", $timeout);