summaryrefslogtreecommitdiffstats
path: root/installer/OpenSLX/OSExport/BlockDevice/AoE.pm
diff options
context:
space:
mode:
Diffstat (limited to 'installer/OpenSLX/OSExport/BlockDevice/AoE.pm')
-rw-r--r--installer/OpenSLX/OSExport/BlockDevice/AoE.pm15
1 files changed, 6 insertions, 9 deletions
diff --git a/installer/OpenSLX/OSExport/BlockDevice/AoE.pm b/installer/OpenSLX/OSExport/BlockDevice/AoE.pm
index c8aad4ec..2113ef5c 100644
--- a/installer/OpenSLX/OSExport/BlockDevice/AoE.pm
+++ b/installer/OpenSLX/OSExport/BlockDevice/AoE.pm
@@ -14,12 +14,11 @@
# -----------------------------------------------------------------------------
package OpenSLX::OSExport::BlockDevice::AoE;
-use vars qw($VERSION);
+use strict;
+use warnings;
+
use base qw(OpenSLX::OSExport::BlockDevice::Base);
-$VERSION = 1.01; # API-version . implementation-version
-use strict;
-use Carp;
use File::Basename;
use OpenSLX::Basics;
use OpenSLX::ConfigDB qw(:support);
@@ -32,7 +31,6 @@ use OpenSLX::Utils;
#
#
-
################################################################################
### interface methods
################################################################################
@@ -66,10 +64,9 @@ sub generateExportURI
my $self = shift;
my $export = shift;
- my $server =
- length($export->{server_ip})
- ? $export->{server_ip}
- : generatePlaceholderFor('serverip');
+ my $serverIP = $export->{server_ip} || '';
+ my $server
+ = length($serverIP) ? $serverIP : generatePlaceholderFor('serverip');
$server .= ":$export->{port}" if length($export->{port});
return "aoe://$server";