Revision 56de025f
Added by Tomáš Strachota almost 6 years ago
app/models/compute_attribute.rb | ||
---|---|---|
vm_attrs.has_key?(method.to_s) || super
|
||
end
|
||
|
||
def normalized_vm_attrs
|
||
compute_resource.normalize_vm_attrs(vm_attrs)
|
||
end
|
||
|
||
def vm_interfaces
|
||
attribute_values(compute_resource.interfaces_attrs_name)
|
||
end
|
||
|
||
def new_vm
|
||
compute_resource.new_vm(vm_attrs) if vm_attrs
|
||
compute_resource.new_vm(vm_attrs.dup) if vm_attrs
|
||
end
|
||
|
||
def pretty_vm_attrs
|
Also available in: Unified diff
Fixes #21580 - normalize compute attributes (#4980)
Normalizes compute attributes in API show actions. For backwards
compatibility reasons this patch adds a new rabl node instead of
replacing 'vm_attrs'.