[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[Libguestfs] [PATCH] GuestOS: Fix [aliases] not parsed unless [deps] is specified



A cut/paste error in GuestOS.pm meant that aliases specified in the config file
would be ignored unless the config file also had a [deps] section.
---
 lib/Sys/VirtV2V/GuestOS.pm |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lib/Sys/VirtV2V/GuestOS.pm b/lib/Sys/VirtV2V/GuestOS.pm
index 60d62ed..1db7590 100644
--- a/lib/Sys/VirtV2V/GuestOS.pm
+++ b/lib/Sys/VirtV2V/GuestOS.pm
@@ -188,7 +188,7 @@ sub configure
     # Populate aliases from the [aliases] config section
     my $aliases_conf = $config->{aliases};
 
-    if(defined($deps_conf)) {
+    if(defined($aliases_conf)) {
         # Copy the aliases_conf hash into %aliases
         foreach my $label (keys(%$aliases_conf)) {
             $aliases{$label} = $aliases_conf->{$label};
-- 
1.6.5.2


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]