diff options
author | Michael Larson <slioch@slioch.vyatta.com> | 2010-06-03 18:14:04 -0700 |
---|---|---|
committer | Michael Larson <slioch@slioch.vyatta.com> | 2010-06-03 18:14:04 -0700 |
commit | 0494d74dc72f2c40430b8a426fd55a71a4f02bd7 (patch) | |
tree | 776b8d0629b1bff69082a1f9ba0bd7ebdc494070 /lib/Vyatta/Config.pm | |
parent | 8a857b663dffa584dd53b6c8aeac0652ae61825b (diff) | |
download | vyatta-cfg-0494d74dc72f2c40430b8a426fd55a71a4f02bd7.tar.gz vyatta-cfg-0494d74dc72f2c40430b8a426fd55a71a4f02bd7.zip |
implemented modified notation for pre-commit activate/deactivate. added check on modified nodes prior to
load. modified active directory check.
Diffstat (limited to 'lib/Vyatta/Config.pm')
-rwxr-xr-x | lib/Vyatta/Config.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Vyatta/Config.pm b/lib/Vyatta/Config.pm index 0e71ccf..93a2478 100755 --- a/lib/Vyatta/Config.pm +++ b/lib/Vyatta/Config.pm @@ -594,7 +594,7 @@ sub existsOrig { my ($status, undef) = $self->getDeactivated($ttmp); #only return value if status is not disabled (i.e. local or both) if (defined($status) && ($status eq 'both' || $status eq 'active')) { #if a .disable is in local or active or both then return false - return undef; + return; } } @@ -678,7 +678,7 @@ sub getDeactivated { $node =~ s/ /\//g; while (1) { - my $filepath = "$self->{_changes_only_dir_base}/$node"; + my $filepath = "$self->{_new_config_dir_base}/$node"; my $filepathActive = "$self->{_active_dir_base}/$node"; my $local = $filepath . "/.disable"; |