xen-resize-guest: Don't read config file if it doesn't exist as xen-create-image does
This commit is contained in:
parent
cc64623752
commit
b7c1cd9d8a
@ -301,6 +301,9 @@ sub readConfigurationFile
|
||||
{
|
||||
my ($file) = (@_);
|
||||
|
||||
# Don't read the file if it doesn't exist.
|
||||
return if ( !-e $file );
|
||||
|
||||
open( FILE, "<", $file ) or die "Cannot read file '$file' - $!";
|
||||
|
||||
my $line = "";
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user