From cc5ad3f7570672c121753537f34fa492cf44add7 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Wed, 29 Oct 2008 09:15:11 +0000 Subject: fix storage types usage --- lib/MDV/Draklive/Media.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/MDV/Draklive/Media.pm b/lib/MDV/Draklive/Media.pm index 76188d8..6c916ca 100644 --- a/lib/MDV/Draklive/Media.pm +++ b/lib/MDV/Draklive/Media.pm @@ -1,6 +1,7 @@ package MDV::Draklive::Media; use MDK::Common; +use MDV::Draklive::Storage; sub get_initrd_path { my ($media) = @_; @@ -10,13 +11,13 @@ sub get_initrd_path { #- mainly for storage-specific subroutines sub get_storage_setting { my ($media, $setting) = @_; - $storage{$media->{storage}}{$setting}; + $MDV::Draklive::Storage::storage_types{$media->{storage}}{$setting}; } #- for actions that support an optional boot storage type sub get_boot_setting { my ($media, $setting, $opts) = @_; - $opts->{boot} ? $storage{$opts->{boot}}{$setting} : get_media_setting($media, $setting); + $opts->{boot} ? $MDV::Draklive::Storage::storage_types{$opts->{boot}}{$setting} : get_media_setting($media, $setting); } #- for user-customisable media setting, that can override storage setting -- cgit v1.2.1