Revision ab3d6fb4
Added by Daniel Lobato Garcia about 8 years ago
app/models/concerns/fog_extensions/digitalocean/image.rb | ||
---|---|---|
# Attempt guessing arch based on the name from digital ocean
|
||
def arch
|
||
requires :os_version
|
||
os_version.end_with?("x64") ? "x86_64" : ( os_version.end_with?("x32") ? "i386" : nil )
|
||
if os_version.end_with?("x64")
|
||
"x86_64"
|
||
elsif os_version.end_with?("x32")
|
||
"i386"
|
||
end
|
||
end
|
||
|
||
end
|
||
end
|
||
end
|
Also available in: Unified diff
Fixes #11332 - DigitalOcean API v2 support
This should allow provisioning using API v2. It relies on Fog 1.36 at
The plugin now:least to work, so 1.10 and older versions of Foreman will not work with
this plugin unfortunately.
client_id
task