Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation improvement request #140

Closed
ThierryBesancon opened this issue Aug 18, 2020 · 1 comment
Closed

Documentation improvement request #140

ThierryBesancon opened this issue Aug 18, 2020 · 1 comment
Labels
type/feature-request New feature or request

Comments

@ThierryBesancon
Copy link

Hello

Thanks for the quite good documentation coming with OMAM. Let's make a step beyond and make it better.

examples/idrac/idrac_redfish_storage_controller_job_tracking.yml checks for the completion of a job doing it the low level way with repeatedly calling uri:. Why not change this to use dellemc_get_lc_job_status?

From

    - name: "iDRAC Job tracking"
      uri:
        url: "https://{{ baseuri }}{{ result.task.uri }}"
        user: "{{ username }}"
        password: "{{ password }}"
        method: "GET"
        use_proxy: yes
        status_code: 200, 202
        return_content: yes
        validate_certs: no
        force_basic_auth: yes
        headers:
          Content-Type: "application/json"
          Accept: "application/json"
      register: result
      until: result.json.JobState == 'Completed'
      retries: "{{ retries_count }}"
      delay: "{{ polling_interval }}"
      tags: "{{ all_ctrl_task_tags }}"

to

    - name: "iDRAC Job tracking"
      dellemc_get_lc_job_status:
        idrac_ip: "{{ idrac_ipaddr }}"
        idrac_user: "{{ username }}"
        idrac_password: "{{ password }}"
        job_id: "{{ result.task.id }}"
      register: result
      until: result.msg.JobStatus == 'Completed'
      retries: "{{ retries_count }}"
      delay: "{{ polling_interval }}"
      tags: "{{ all_ctrl_task_tags }}"

Hope it helps.

Thanks for the examples/samples.

@jagadeeshnv jagadeeshnv added the type/feature-request New feature or request label Aug 24, 2020
@rajeevarakkal
Copy link
Contributor

@ThierryBesancon ; appreciate the feedback.
In this module, as you can see we are using baseuri ip:port connectivity approach unlike in our idrac based modules where we have idrac_ip and port as separate parameter. Hence third line in the proposed play enhancement may fail idrac_ip: "{{ idrac_ipaddr }}"

With this we are closing this issue now, in case you need further assistance feel free.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/feature-request New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants