Skip to content

Commit

Permalink
northd: Do not report WARN for empty requested-chassis
Browse files Browse the repository at this point in the history
Reported-at: https://bugzilla.redhat.com/2126400
Signed-off-by: Ales Musil <amusil@redhat.com>
Acked-by: Mark Michelson <mmichels@redhat.com>
Signed-off-by: Dumitru Ceara <dceara@redhat.com>
  • Loading branch information
almusil authored and dceara committed Sep 26, 2022
1 parent 34c0416 commit bc8691d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion northd/northd.c
Original file line number Diff line number Diff line change
Expand Up @@ -3407,7 +3407,7 @@ ovn_port_update_sbrec(struct northd_input *input_data,
bool reset_requested_chassis = false;
requested_chassis = smap_get(&op->nbsp->options,
"requested-chassis");
if (requested_chassis) {
if (requested_chassis && requested_chassis[0]) {
const struct sbrec_chassis *chassis; /* May be NULL. */
chassis = chassis_lookup_by_name(sbrec_chassis_by_name,
requested_chassis);
Expand Down

0 comments on commit bc8691d

Please sign in to comment.