ex_list_projects is introduced in version 0.15 of libcloud. I'm simply
cathing the AttributeError here to return False, just like there would
be not project.
Fixes#31729
This should have been changed when we altered the default value in
16a3938. It caused a missing pillar_opts minion config value to
incorrectly assume that master config should have been added to the
pillar data.
using module.run to check if port 53 is opened on localhost, using module network.connect
example state:
~~~
network.connect:
module.run:
- host: {{ salt['network.ipaddrs']()|join }}
- port: 53
- port: 1234
- proto: udp
unexpected behavior:
module.run will always succeed,
even If network.connect returns result: False
example output (before the change):
----------
ID: network.connect
Function: module.run
Result: True
Comment: Module function network.connect executed
Started: 22:28:29.475623
Duration: 0.001 ms
Changes:
----------
ret:
----------
comment:
Unable to connect to 10.0.0.50 (10.0.0.50) on tcp port 1234
result:
False
Proposal:
Proposing to check changes_ret.result and return it as a result before trying to check changes_ret.retcode
tested expected behavior:
~~~
----------
ID: network.connect
Function: module.run
Result: False
Comment: Module function network.connect executed
Started: 22:50:25.149832
Duration: 9.964 ms
Changes:
----------
ret:
----------
comment:
Unable to connect to 10.0.0.50 (10.0.0.50) on tcp port 1234
result:
False
----------
ID: network.connect
Function: module.run
Result: True
Comment: Module function network.connect executed
Started: 22:50:07.129629
Duration: 0.205 ms
Changes:
----------
ret:
----------
comment:
Successfully connected to 10.0.0.50 (10.0.0.50) on tcp port 53
result:
True
yum install does not support epoch without the arch, and we won't know
what the arch will be when it's not provided. It could either be the OS
architecture, or 'noarch', and we don't make that distinction in the
pkg.list_pkgs return data.
Fixes#31619.
This commit extends the fileclient such that it is possible to override
the base directory for file caching. The new "cachedir" param can be
either a relative path or an absolute path. If it is relative, the path
will be appended to __opts__['cachedir'], and if it is absolute then it
will take the place of __opts__['cachedir'].