Skip to content

Commit

Permalink
Need to unencode url encoded usernames for connect.SmartConnect, but …
Browse files Browse the repository at this point in the history
…not for ovftool.
  • Loading branch information
Russ Marshall committed Mar 13, 2017
1 parent e7533c6 commit 3f3bfee
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions library/ovftool.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,15 @@
import ssl

import requests
import urllib
from ansible.module_utils.basic import *
from pyVmomi import vim
from pyVim import connect


def connect_to_api(vchost, vc_user, vc_pwd):
vc_user = urllib.unquote(vc_user)

if hasattr(ssl, 'SSLContext'):
context = ssl.SSLContext(ssl.PROTOCOL_SSLv23)
context.verify_mode = ssl.CERT_NONE
Expand Down

0 comments on commit 3f3bfee

Please sign in to comment.