Fix truncated port description change (F. Schiavarelli)
This commit is contained in:
@@ -8,6 +8,7 @@
|
|||||||
|
|
||||||
* [ND1#117] unknown devices missing from inventory
|
* [ND1#117] unknown devices missing from inventory
|
||||||
* [#118] Fix table rendering on port search tab when VLAN is null
|
* [#118] Fix table rendering on port search tab when VLAN is null
|
||||||
|
* Fix truncated port description change (F. Schiavarelli)
|
||||||
|
|
||||||
2.028000 - 2014-07-01
|
2.028000 - 2014-07-01
|
||||||
|
|
||||||
|
|||||||
@@ -23,6 +23,10 @@ sub set_portcontrol {
|
|||||||
return job_error("Cannot alter port: $reconfig_check")
|
return job_error("Cannot alter port: $reconfig_check")
|
||||||
if $reconfig_check;
|
if $reconfig_check;
|
||||||
|
|
||||||
|
# need to remove "-other" which appears for power/portcontrol
|
||||||
|
(my $sa = $job->subaction) =~ s/-\w+//;
|
||||||
|
$job->subaction($sa);
|
||||||
|
|
||||||
return _set_port_generic($job, 'up_admin');
|
return _set_port_generic($job, 'up_admin');
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -50,7 +54,7 @@ sub _set_port_generic {
|
|||||||
|
|
||||||
my $ip = $job->device;
|
my $ip = $job->device;
|
||||||
my $pn = $job->port;
|
my $pn = $job->port;
|
||||||
(my $data = $job->subaction) =~ s/-\w+//;
|
my $data = $job->subaction;
|
||||||
|
|
||||||
my $port = get_port($ip, $pn)
|
my $port = get_port($ip, $pn)
|
||||||
or return job_error("Unknown port name [$pn] on device [$ip]");
|
or return job_error("Unknown port name [$pn] on device [$ip]");
|
||||||
|
|||||||
Reference in New Issue
Block a user