summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rwxr-xr-xlib/Vyatta/Config.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Vyatta/Config.pm b/lib/Vyatta/Config.pm
index d37d34f..6dfcc46 100755
--- a/lib/Vyatta/Config.pm
+++ b/lib/Vyatta/Config.pm
@@ -32,12 +32,13 @@ my %fields = (
);
sub new {
- my $that = shift;
+ my ($that, $level) = @_;
my $class = ref ($that) || $that;
my $self = {
%fields,
};
bless $self, $class;
+ $self->{_level} = $level if defined($level);
$self->{_cstore} = new Cstore();
return $self;
}