diff options
-rw-r--r-- | os-plugins/plugins/vmware/OpenSLX/Distro/Base.pm | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/os-plugins/plugins/vmware/OpenSLX/Distro/Base.pm b/os-plugins/plugins/vmware/OpenSLX/Distro/Base.pm index 2888c007..4e87697a 100644 --- a/os-plugins/plugins/vmware/OpenSLX/Distro/Base.pm +++ b/os-plugins/plugins/vmware/OpenSLX/Distro/Base.pm @@ -12,7 +12,7 @@ # - provides empty base of the OpenSLX OSPlugin Distro API for the vmware # plugin. # ----------------------------------------------------------------------------- -package OpenSLX::Distro::base; +package OpenSLX::Distro::Base; use strict; use warnings; @@ -27,7 +27,10 @@ use OpenSLX::Utils; ################################################################################ sub new { - confess "Creating OpenSLX::OSPlugin::Distro::Base-objects directly makes no sense!"; + my $class = shift; + my $self = {}; + return bless $self, $class; + } sub initialize |