From d331c206a6e86fce8ad7a7cb099c11291dd0983f Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Tue, 28 Oct 2008 20:46:55 +0000 Subject: move get_boot_setting as method in MDV::Draklive::Media --- lib/MDV/Draklive/Media.pm | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lib/MDV/Draklive/Media.pm') diff --git a/lib/MDV/Draklive/Media.pm b/lib/MDV/Draklive/Media.pm index 27eea42..e3fa1ac 100644 --- a/lib/MDV/Draklive/Media.pm +++ b/lib/MDV/Draklive/Media.pm @@ -11,4 +11,10 @@ sub get_storage_setting { $storage{$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); +} + 1; -- cgit v1.2.1