Skip to content

Commit

Permalink
Merge pull request #58 from packethost/fix-diff
Browse files Browse the repository at this point in the history
Fix diff? method for newer JunOS versions
  • Loading branch information
ydnath authored Apr 13, 2018
2 parents 9e4654f + 7e7e954 commit 5bbab24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/junos-ez/utils/config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ def rollback!( rollback_id = 0 )

def diff?( rollback_id = 0 )
raise ArgumentError, "invalid rollback #{rollback_id}" unless ( rollback_id >= 0 and rollback_id <= 50 )
got = ndev.rpc.get_configuration( :compare=>'rollback', :rollback=> rollback_id.to_s )
got = ndev.rpc.get_configuration( :compare => 'rollback', :rollback => rollback_id.to_s, :format => 'text' )
diff = got.xpath('configuration-output').text
return nil if diff == "\n"
diff
Expand Down

0 comments on commit 5bbab24

Please sign in to comment.