MT#62705 fix get_peer_auth_params() $rs

* fix $rs check expression to check for both undef and $rs->value
  as otherwise it fails when $type is neither 'subscirbers' nor
  'peerings'

Change-Id: I59e2c445416d5107a4aa207a9f16552d806df54d
(cherry picked from commit 8037316fe4)
mr12.5
Kirill Solomko 1 week ago
parent 46e6b95568
commit ae849e3595

@ -2768,7 +2768,7 @@ sub get_peer_auth_params {
peer_host => $prov_object
);
}
$prefs->{$attribute} = $rs->first ? $rs->first->value : undef;
$prefs->{$attribute} = $rs && $rs->first ? $rs->first->value : undef;
}
}

Loading…
Cancel
Save