Fix failing grains test on CentOS

Resolves https://github.com/saltstack/salt-jenkins/issues/556
This commit is contained in:
Erik Johnson 2017-11-27 21:37:46 -06:00
parent b29300ef68
commit 682fc1b884
No known key found for this signature in database
GPG Key ID: 5E5583C437808F3F

View File

@ -477,7 +477,8 @@ PATCHLEVEL = 3
'/proc/meminfo': True
}
_cmd_run_map = {
'dpkg --print-architecture': 'amd64'
'dpkg --print-architecture': 'amd64',
'rpm --eval %{_host_cpu}': 'x86_64'
}
path_exists_mock = MagicMock(side_effect=lambda x: _path_exists_map[x])