From 3ee133c8f4c8a544439646333be749e146f1a37e Mon Sep 17 00:00:00 2001 From: Matteo Monti Date: Wed, 20 Jun 2018 22:46:43 +0200 Subject: [PATCH] Added option for network ip --- lib/fog/compute/google/models/server.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/fog/compute/google/models/server.rb b/lib/fog/compute/google/models/server.rb index b01cc4a48a..5570e30794 100644 --- a/lib/fog/compute/google/models/server.rb +++ b/lib/fog/compute/google/models/server.rb @@ -473,6 +473,10 @@ def save(username: nil, public_key: nil) ] end + if attributes[:network_ip] + options[:network_interfaces][0][:network_ip] = attributes[:network_ip] + end + data = service.insert_server(name, zone_name, options) operation = Fog::Compute::Google::Operations