lib/infoblox/resource/host.rb in infoblox-0.0.10 vs lib/infoblox/resource/host.rb in infoblox-0.0.11
- old
+ new
@@ -17,7 +17,13 @@
end
def ipv4addrs
@ipv4addrs ||= []
end
+
+ def remote_attribute_hash(write=false, post=false)
+ super.tap do |hsh|
+ hsh[:ipv4addrs] = ipv4addrs.map{|i| {:ipv4addr => i.ipv4addr}}
+ end
+ end
end
end
\ No newline at end of file