yumpkg.list_upgrades returns an empty dictionary when no upgrades are available.
We need to check for this situation and skip the test if no upgrades are present.
Fixes the test failure on Fedora 24 on Jenkins currently, but also protects against
any potential failures for other RHEL-based distros that aren't currently failing
because "ret" is populated with a dictionary of upgrades.
This should fixup the failing integration.states.alternatives test
in 2016.3 as well. The alternatives.install state relies on checking
if the output of alternatives.show_link matches the path passed into
the state. Since show_link didn't work on suse correctly, the state
doesn't install the alternative and returns False.
* disable current at module on solaris, only compute job_kw_regtex once
* provide at_solaris (virtual=at) for Solaris-like systems
* add proper maintainer header
* forgot to update the docs again
* add notice that at module only works on linux, openbsd, and freebsd
* salt.states.at needed a lot of love
* update at_state checks to pass valid date to at.at, at.jobcheck, at.atrm,...
* today I learn about mod_watch, and I want it for at
Slave interfaces have some of their parameters overridden before being written
to file, but when Salt is ran in test mode, those overridden values aren't
taken into account. This results in the test run showing that changes will be
applied, even though the configuration hasn't changed at all:
ID: ens2f1
Function: network.managed
Result: None
Comment: Interface ens2f1 is set to be updated:
---
+++
@@ -1,4 +1,3 @@
auto ens2f1
-iface ens2f1 inet manual
- bond-master bond0
+iface ens2f1 inet static
Started: 09:07:41.719716
Duration: 1.91 ms
Changes:
This commit overrides those values in _parse_settings_eth instead of
_write_file_ifaces, so that the test run shows what's really going to be
modified.
* Add proof-of-concept for consuming the SSE stream via JavaScript
* Add SSE demo app as default for the /app endpoint
* Switch SSE async warning with good async example and recommendations
This code was originally added to the option parser in 423a356. It was
probably intended to be a single string continued onto multiple lines
via parenthesis, but the use of a comma turns this into a tuple, which
causes a traceback when "salt-ssh -h" is run.
By default, the salt-minion will fall back to localhost (127.0.0.1) if
the DNS resolve fails on the salt-master hostname. There are some cases
where that is not desirable, such as when using a master failover list
and there is a master running locally that we don't want to connect to.
Add a boolean config option called `resolve_dns_fallback` which
defaults to True but will disable the fall back behavior if set to
False.
Now that `salt.minion.resolve_dns()` may be invoked with `fallback=False`,
that function is more likely to throw a `SaltClientError` exception
instead of reacting to the error condition internally. Due to this, made
sure the callers will be able to catch that exception and react
appropriately.
Signed-off-by: Sergey Kizunov <sergey.kizunov@ni.com>