Merge "Fix incorrect comments about updating region/zone of a device"
This commit is contained in:
commit
0252254230
@ -203,16 +203,15 @@ class Puppet::Provider::SwiftRingBuilder < Puppet::Provider
|
|||||||
end
|
end
|
||||||
|
|
||||||
def region=(region)
|
def region=(region)
|
||||||
raise(Puppet::Error, "Changing the region of a device is not possible.")
|
raise(Puppet::Error, "Changing the region of a device is not yet supported.")
|
||||||
end
|
end
|
||||||
|
|
||||||
def zone
|
def zone
|
||||||
ring[resource[:name]][:zone]
|
ring[resource[:name]][:zone]
|
||||||
end
|
end
|
||||||
|
|
||||||
# TODO - is updating the zone supported?
|
|
||||||
def zone=(zone)
|
def zone=(zone)
|
||||||
Puppet.warning('Setting zone is not yet supported, I am not even sure if it is supported')
|
raise(Puppet::Error, "Changing the zone of a device is not yet supported.")
|
||||||
end
|
end
|
||||||
|
|
||||||
def weight
|
def weight
|
||||||
|
Loading…
Reference in New Issue
Block a user