mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
[hp|compute] Add user_data option to create server call.
This commit is contained in:
parent
ed461e5b3e
commit
e221e2af6c
1 changed files with 4 additions and 0 deletions
|
@ -91,6 +91,10 @@ module Fog
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if options['user_data']
|
||||||
|
data['server']['user_data'] = options['user_data']
|
||||||
|
end
|
||||||
|
|
||||||
request(
|
request(
|
||||||
:body => Fog::JSON.encode(data),
|
:body => Fog::JSON.encode(data),
|
||||||
:expects => 202,
|
:expects => 202,
|
||||||
|
|
Loading…
Add table
Reference in a new issue