lib/sloe/junos.rb in sloe-0.5.1 vs lib/sloe/junos.rb in sloe-0.5.3
- old
+ new
@@ -6,10 +6,11 @@
def initialize(args, &block)
super( args, &block )
end
- def cli(cmd_str, attrs = nil)
- self.rpc.command(cmd_str, attrs)
+ def cli(cmd_str, attrs = { :format => 'text' })
+ attrs[:format] ||= 'text'
+ self.rpc.command(cmd_str, attrs).text
end
end
end