From eb1470121edc4ac79540ef2b8fc2964af62e44dc Mon Sep 17 00:00:00 2001 From: Rupak Ganguly Date: Tue, 6 Dec 2011 14:11:06 -0500 Subject: [PATCH] Add options for keyname, security group and availability zone. --- lib/fog/hp/requests/compute/create_server.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lib/fog/hp/requests/compute/create_server.rb b/lib/fog/hp/requests/compute/create_server.rb index 29e24a921..f122b825a 100644 --- a/lib/fog/hp/requests/compute/create_server.rb +++ b/lib/fog/hp/requests/compute/create_server.rb @@ -61,6 +61,16 @@ module Fog } end end + if options['key_name'] + data['server']['key_name'] = options['key_name'] + end + if options['security_group'] + data['server']['security_group'] = options['security_group'] + end + if options['availability_zone'] + data['server']['availability_zone'] = options['availability_zone'] + end + request( :body => MultiJson.encode(data), :expects => 202,