Skip to content

Commit

Permalink
Switch diff direction
Browse files Browse the repository at this point in the history
Previous if you added something to the replace candidate, it would
appear in the diff output with a - prefix instead of a plus
  • Loading branch information
btobolaski committed Apr 19, 2020
1 parent 5e82468 commit e2972aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions napalm_ruckus_fastiron/FastIron.py
Original file line number Diff line number Diff line change
Expand Up @@ -659,8 +659,8 @@ def compare_config(self): # optimize implementatio
else:
return -1 # No configuration was found

diff_1 = FastIronDriver.__comparing_list(rc, stored_conf, "+")
diff_2 = FastIronDriver.__comparing_list(stored_conf, rc, "-")
diff_1 = FastIronDriver.__comparing_list(rc, stored_conf, "-")
diff_2 = FastIronDriver.__comparing_list(stored_conf, rc, "+")

str_diff1 = FastIronDriver.__compare_away(diff_1, diff_2)
str_diff2 = FastIronDriver.__compare_vice(diff_2, diff_1)
Expand Down

0 comments on commit e2972aa

Please sign in to comment.