Bug 1570153

Summary: key 'tag' in vms dictionary is mandatory but it shouldn't be
Product: [oVirt] ovirt-ansible-collection Reporter: Petr Kubica <pkubica>
Component: vm-infraAssignee: Ondra Machacek <omachace>
Status: CLOSED CURRENTRELEASE QA Contact: Petr Kubica <pkubica>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 1.1.6CC: mperina, ratamir
Target Milestone: ovirt-4.2.3Flags: rule-engine: ovirt-4.2+
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ovirt-ansible-vm-infra-1.1.7 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-05-06 08:04:09 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Infra RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Petr Kubica 2018-04-20 18:20:17 UTC
Description of problem:
It's always necessary to specify tag 

TASK [ovirt-vm-infra : Tag VMs] ************************************************
task path: /usr/share/ansible/roles/oVirt.vm-infra/tasks/main.yml:89
fatal: [localhost]: FAILED! => {
    "msg": "'dict object' has no attribute 'tag'"
}


Version-Release number of selected component (if applicable):
ansible-2.5.0-1.el7ae.noarch
ovirt-ansible-vm-infra-1.1.6-1.el7ev.noarch

How reproducible:
always

Steps to Reproduce:
    vm01:
      cluster: Default
      template: Blank

    vms:
      - name: vm-01
        profile: "{{vm01}}"

Actual results:
failed with: "msg": "'dict object' has no attribute 'tag'"

Expected results:
should not fail