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 when FQDN is not resolved by socket.getfqdn(ip) #62

Merged
merged 4 commits into from
Jun 7, 2016
Merged

Conversation

myakove
Copy link

@myakove myakove commented Jun 3, 2016

In some cases socket.getfqdn(ip) return IP and not the host FQDN so if Host
was created with FQDN we will use it as FQDN

myakove added 2 commits June 3, 2016 23:58
Sometime socket.getfqdn(ip) return IP and not the host FQDN so if Host
was created with FQDN we will use it as FQDN
Sometime socket.getfqdn(ip) return IP and not the host FQDN so if Host
was created with FQDN we will use it as FQDN
@codecov-io
Copy link

codecov-io commented Jun 3, 2016

Current coverage is 71.88%

Merging #62 into master will decrease coverage by <.01%

@@             master        #62   diff @@
==========================================
  Files            16         16          
  Lines          1271       1273     +2   
  Methods           0          0          
  Messages          0          0          
  Branches          0          0          
==========================================
+ Hits            914        915     +1   
- Misses          357        358     +1   
  Partials          0          0          

Powered by Codecov. Last updated by da13aac...f1341b5

@@ -59,7 +59,9 @@ def __init__(self, ip, service_provider=None):
:type service_provider: class which implement SystemService interface
"""
super(Host, self).__init__()
self.h_fqdn = None
Copy link
Member

Choose a reason for hiding this comment

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

I would leave it as self._fqdn

@lukas-bednar
Copy link
Member

Please cover that new branches with test

@lukas-bednar lukas-bednar added this to the 0.1.3 milestone Jun 4, 2016
myakove added 2 commits June 5, 2016 17:26
Sometime socket.getfqdn(ip) return IP and not the host FQDN so if Host
was created with FQDN we will use it as FQDN
Sometime socket.getfqdn(ip) return IP and not the host FQDN so if Host
was created with FQDN we will use it as FQDN
@lukas-bednar lukas-bednar merged commit ede0c96 into rhevm-qe-automation:master Jun 7, 2016
@vkondula vkondula mentioned this pull request Oct 10, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants