Closed puneetloya closed 7 years ago
@puneetloya Yes it does.
I tried to do image.datacenters = ['dal01', 'dal05'] image being a Sofltayer::ImageTemplate object. This seem to not work. Can you help me out? @renier
@puneetloya As the doc says, it has to be an array of SoftLayer::Datacenter instances:
e.g.
image.datacenters = ['dal01', 'dal05'].map do |name|
SoftLayer::Datacenter.datacenter_named(name)
end
https://github.com/softlayer/softlayer-ruby/blob/master/lib/softlayer/ImageTemplate.rb#L95
The name being unique ('dal01', 'dal05'). Can the API just accept array of datacenter names?