Created
February 10, 2014 04:38
-
-
Save quantonganh/8910450 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| elif 'key_url' in kwargs: | |
| key_url = kwargs['key_url'] | |
| cmd = 'wget -q -O- "{0}" | gpg --no-default-keyring --keyring {1}/trustedkeys.gpg --import'.format(key_url, gnupghome) | |
| ret = __salt__['cmd.run_all'](cmd, **kwargs) | |
| if ret['retcode'] != 0: | |
| raise CommandExecutionError( | |
| 'Error: key retrieval failed: {0}'.format(ret['stderr']) | |
| ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment