Skip to content

Commit

Permalink
rhevm: fix urls not ending with slash
Browse files Browse the repository at this point in the history
  • Loading branch information
Radek Novacek committed Jun 9, 2016
1 parent 300a7c7 commit a5185bc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions virtwho/virt/rhevm/rhevm.py
Expand Up @@ -65,6 +65,9 @@ def __init__(self, logger, config):
netloc = parsed[1]
self.url = urlparse.urlunsplit((parsed[0], netloc, parsed[2], "", ""))

if self.url[-1] != '/':
self.url += '/'

self.username = self.config.username
self.password = self.config.password

Expand Down

0 comments on commit a5185bc

Please sign in to comment.