Uploaded image for project: 'Product Technical Learning'
  1. Product Technical Learning
  2. PTL-14436

DO417: ch06s06: Step 3.2 and Step 3.3 Expression of dict is not consistent

XMLWordPrintable

    • False
    • Hide

      None

      Show
      None
    • False
    • en-US (English)

      Please fill in the following information:


      URL: https://rol.redhat.com/rol/app/courses/do417-2.4/pages/ch06s06
      Reporter RHNID: wasim-rhls
      Section Title:           Guided Exercise: Handling Task Failure                                                             

      Issue description

      Expression of dict is not consistent

      3.2

      • name: Home page index is set
         ansible.windows.win_uri:
         url: http://win1.example.com
         return_content: true
         register: index
         failed_when: index['content'] != "Ansible is great"

      3.3 
       failed_when: index.content != "Ansible is great"

      since they are pointing same playbook and same task, it should be consistent index.content or index['content'] 

      Steps to reproduce:

       

      Workaround:

       

      Expected result:

              rht-eparenti Ed Parenti
              wraja@redhat.com Wasim Raja
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: