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

fix for the port param of dns_check function only accept int type input #13

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rongzeng54
Copy link

@rongzeng54 rongzeng54 commented Oct 29, 2019

# python2.7
Python 2.7.14 (default, Jan 31 2018, 02:12:13)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-18)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import salt.utils
>>> salt.utils.dns_check('salt-master', int('4505'))
'x.x.x.x'
>>> salt.utils.dns_check('salt-master', '4505')
Attempt to resolve address 'mfsmaster' failed. Invalid or unresolveable address

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant