diff --git a/app/models/miq_provision_virt_workflow.rb b/app/models/miq_provision_virt_workflow.rb index 35ae8cbc4c2e..0e1fb5dca781 100644 --- a/app/models/miq_provision_virt_workflow.rb +++ b/app/models/miq_provision_virt_workflow.rb @@ -1046,7 +1046,7 @@ def create_hash_struct_from_vm_or_template(vm_or_template, options) :allocated_disk_storage => vm_or_template.allocated_disk_storage, :v_total_snapshots => vm_or_template.v_total_snapshots, :evm_object_class => :Vm} - data_hash[:cloud_tenant] = vm_or_template.cloud_tenant if vm_or_template.cloud_tenant_id + data_hash[:cloud_tenant] = vm_or_template.cloud_tenant if vm_or_template.respond_to?(:cloud_tenant) if vm_or_template.operating_system data_hash[:operating_system] = MiqHashStruct.new(:product_name => vm_or_template.operating_system.product_name) end