Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Salt's ansiblegate module fixes #60208

Merged
merged 7 commits into from Jun 30, 2021

Conversation

s0undt3ch
Copy link
Member

@s0undt3ch s0undt3ch commented May 18, 2021

What does this PR do?

What issues does this PR fix or reference?

Fixes #60207
Fixes #59792

Merge requirements satisfied?

[NOTICE] Bug fixes or features added to Salt require tests.

Commits signed with GPG?

Yes

@s0undt3ch s0undt3ch force-pushed the hotfix/ansiblegate-60207 branch 6 times, most recently from 0cf72cd to a65d1e3 Compare May 19, 2021 16:02
@s0undt3ch s0undt3ch marked this pull request as ready for review May 19, 2021 19:08
@s0undt3ch s0undt3ch requested a review from a team as a code owner May 19, 2021 19:08
@s0undt3ch s0undt3ch requested review from krionbsd and removed request for a team May 19, 2021 19:08
krionbsd
krionbsd previously approved these changes May 19, 2021
@sagetherage sagetherage added the Silicon v3004.0 Release code name label May 19, 2021
@s0undt3ch s0undt3ch force-pushed the hotfix/ansiblegate-60207 branch 2 times, most recently from f0e4970 to 397f385 Compare May 20, 2021 17:31
@s0undt3ch s0undt3ch changed the title Inject the ansible functions into Salt's ansiblegate module. Salt's ansiblegate module fixes May 20, 2021
@s0undt3ch s0undt3ch force-pushed the hotfix/ansiblegate-60207 branch 2 times, most recently from 488bbcb to b365bfa Compare May 21, 2021 01:53
@s0undt3ch s0undt3ch force-pushed the hotfix/ansiblegate-60207 branch 2 times, most recently from a862817 to afc1126 Compare June 1, 2021 10:19
Ch3LL
Ch3LL previously approved these changes Jun 1, 2021
@sagetherage sagetherage added the ZD The issue is related to a Zendesk customer support ticket. label Jun 1, 2021
@s0undt3ch s0undt3ch force-pushed the hotfix/ansiblegate-60207 branch 3 times, most recently from 12feb92 to cca5940 Compare June 29, 2021 08:51
salt/modules/ansiblegate.py Outdated Show resolved Hide resolved
Ch3LL
Ch3LL previously approved these changes Jun 29, 2021
Copy link
Contributor

@waynew waynew left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a couple of minor tweaks, but... Without actually running locally, this looks great!

salt/modules/ansiblegate.py Outdated Show resolved Hide resolved
salt/modules/ansiblegate.py Show resolved Hide resolved
tests/pytests/integration/states/test_ansiblegate.py Outdated Show resolved Hide resolved
tests/pytests/unit/states/test_ansiblegate.py Outdated Show resolved Hide resolved
tests/pytests/unit/states/test_ansiblegate.py Outdated Show resolved Hide resolved
They cannot be called by passing their path, for example:
```
Traceback (most recent call last):
  File ".nox/pytest-parametrized-3-7-crypto-none-transport-zeromq-coverage-false/lib/python3.7/site-packages/ansible/modules/ping.py", line 63, in <module>
    from ansible.module_utils.basic import AnsibleModule
  File "/home/vampas/projects/SaltStack/salt/hotfix/ansiblegate-59792/.nox/pytest-parametrized-3-7-crypto-none-transport-zeromq-coverage-false/lib/python3.7/site-packages/ansible/module_utils/basic.py", line 53, in <module>
    import tempfile
  File "/home/vampas/projects/SaltStack/salt/hotfix/ansiblegate-59792/.nox/pytest-parametrized-3-7-crypto-none-transport-zeromq-coverage-false/lib/python3.7/site-packages/ansible/modules/tempfile.py", line 79, in <module>
    from tempfile import mkstemp, mkdtemp
ImportError: cannot import name 'mkstemp' from 'tempfile' (/home/vampas/projects/SaltStack/salt/hotfix/ansiblegate-59792/.nox/pytest-parametrized-3-7-crypto-none-transport-zeromq-coverage-false/lib/python3.7/site-packages/ansible/modules/tempfile.py)
```
For example, running locally, under non-root account, ansible complains
about missing sudo password.
@garethgreenaway garethgreenaway merged commit de6f56c into saltstack:master Jun 30, 2021
@s0undt3ch s0undt3ch deleted the hotfix/ansiblegate-60207 branch July 1, 2021 06:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Silicon v3004.0 Release code name ZD The issue is related to a Zendesk customer support ticket.
Projects
None yet
6 participants