Skip to content
Snippets Groups Projects
Commit 3d3f6b6d authored by Aleksandr Kurbatov's avatar Aleksandr Kurbatov
Browse files

p_to_pe: update in command checks

parent 80045351
No related branches found
No related tags found
1 merge request!201Fix/p to pe checks
Pipeline #90834 passed
...@@ -6,6 +6,6 @@ ...@@ -6,6 +6,6 @@
display: json display: json
register: out register: out
- name: "Results of {{ item.command }}" - name: "Results of {{ item.command }}"
when: out.output['rpc-reply']['nokiaoper:results'] != None when: "'nokiaoper:results' in out.output['rpc-reply']"
ansible.builtin.debug: ansible.builtin.debug:
msg: "{{out.output['rpc-reply']['nokiaoper:results']['nokiaoper:md-cli-output-block'].split('\n')}}" msg: "{{out.output['rpc-reply']['nokiaoper:results']['nokiaoper:md-cli-output-block'].split('\n')}}"
...@@ -57,7 +57,7 @@ ...@@ -57,7 +57,7 @@
ansible.builtin.include_tasks: deploy.yaml ansible.builtin.include_tasks: deploy.yaml
- name: PRE checks - name: PRE checks
when: verb == "post_checks" when: verb == "pre_checks"
ansible.builtin.include_tasks: command_checks.yaml ansible.builtin.include_tasks: command_checks.yaml
loop: "{{ pre_check_commands }}" loop: "{{ pre_check_commands }}"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment