Skip to content

Commit

Permalink
Update condition for missing network
Browse files Browse the repository at this point in the history
Network creation wasn't working for me until I changed this condition to look for the string `'network not found'` instead of `'no such network'`. I can't tell, but maybe this worked in the past and the message changed. It is currently defined [here](https://github.com/containers/common/blob/707829f80bc7623c6ecea000f2616977e178ccb5/libnetwork/types/define.go#L11).

fixes ansible-community#28
  • Loading branch information
jdmarble committed Apr 18, 2022
1 parent 3a880aa commit e2e7c78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/molecule_podman/playbooks/create.yml
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@
"{{ podman_network.results[0].ansible_loop.allitems[0].subnet | default(omit) }}"
when:
- podman_network.results[0].msg is defined
- "'no such network' in podman_network.results[0].msg"
- "'network not found' in podman_network.results[0].msg"
- podman_network.results[0].networks is undefined

- name: Create molecule instance(s)
Expand Down

0 comments on commit e2e7c78

Please sign in to comment.