mirror of
https://github.com/linux-system-roles/network.git
synced 2026-07-20 17:59:00 +00:00
Use "is succeeded" instead of | succeeded
This removes this deprecation warning: [DEPRECATION WARNING]: Using tests as filters is deprecated. Instead of using `result|succeeded` instead use `result is succeeded`. This feature will be removed in version 2.9. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.
This commit is contained in:
parent
0bb66af883
commit
791d271d0b
1 changed files with 2 additions and 2 deletions
|
|
@ -43,7 +43,7 @@
|
|||
register: python2_available
|
||||
|
||||
- command: python2 /tmp/test-unit-1/test_network_connections.py --verbose
|
||||
when: python2_available | succeeded
|
||||
when: python2_available is succeeded
|
||||
register: python2_result
|
||||
|
||||
- package:
|
||||
|
|
@ -53,7 +53,7 @@
|
|||
register: python3_available
|
||||
|
||||
- command: python3 /tmp/test-unit-1/test_network_connections.py --verbose
|
||||
when: python3_available | succeeded
|
||||
when: python3_available is succeeded
|
||||
register: python3_result
|
||||
|
||||
- command: python /tmp/test-unit-1/test_network_connections.py --verbose
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue