lib/onering/cli/devices.rb in onering-client-0.0.58 vs lib/onering/cli/devices.rb in onering-client-0.0.59
- old
+ new
@@ -42,16 +42,16 @@
# -----------------------------------------------------------------------------
when :set
raise "Expected 2 parameters, got #{args.length}" unless args.length == 2
- if @opts.get(:query)
+ if @opts[:query]
# doing this until a bulk field set endpoint is built
return @api.list('id', {
:filter => @opts[:query]
}).collect{|i| @api.set_field(i, args[0])}
- elsif @opts.get(:id)
+ elsif @opts[:id]
return @api.set_field(@opts[:id], args[0], args[1])
end
# -----------------------------------------------------------------------------
\ No newline at end of file