Skip to content
This repository has been archived by the owner on Jul 24, 2021. It is now read-only.

Commit

Permalink
Merge pull request #1020 from joyent/ether/switch_peers-unique-results
Browse files Browse the repository at this point in the history
fix switch_peers validation
  • Loading branch information
karenetheridge authored Sep 14, 2020
2 parents 1f1b313 + 4339930 commit 783fb87
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion lib/Conch/Validation.pm
Original file line number Diff line number Diff line change
Expand Up @@ -535,7 +535,6 @@ sub register_result ($self, %attrs) {

my $validation_result = {
message => $attrs{message} || $message,
name => $attrs{name} || $self->name,
category => $attrs{category} || $self->category,
component => $attrs{component},
status => $success ? _STATUS_PASS : _STATUS_FAIL,
Expand Down
5 changes: 2 additions & 3 deletions lib/Conch/Validation/SwitchPeers.pm
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ sub validate {
expected => [@peer_ports],
got => $peer_port,
cmp => 'oneOf',
component => $nic->{nic},
component => $nic->{mac},
name => 'peer_ports'
);

Expand All @@ -85,7 +85,7 @@ sub validate {
$self->register_result(
expected => 2,
got => $num_switches,
name => 'num_switches'
component => 'num_switches',
);

# Validate the number of ports per switch
Expand All @@ -97,7 +97,6 @@ sub validate {
$self->register_result(
expected => 2,
got => $num_ports,
name => 'num_ports',
component => $switch_name,
);
}
Expand Down

0 comments on commit 783fb87

Please sign in to comment.