Skip to content

Commit

Permalink
Merge pull request #319 from tianhao64/master
Browse files Browse the repository at this point in the history
Doc update for 6.0
  • Loading branch information
Tianhao He committed Nov 30, 2015
2 parents ef29bcf + 3fefedd commit 51a54c0
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 16 deletions.
16 changes: 9 additions & 7 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,12 @@ Documentation
=============
For general language neutral documentation of vSphere Management API see:

* `vSphere WS SDK API Docs <http://pubs.vmware.com/vsphere-55/topic/com.vmware.wssdk.apiref.doc/right-pane.html>`_
* `vSphere WS SDK API Docs <http://pubs.vmware.com/vsphere-60/topic/com.vmware.wssdk.apiref.doc/right-pane.html>`_

Python Support
==============
* pyVmomi 5.5.0-2014.1 and later support Python 2.6, 2.7, 3.3 and 3.4
* pyVmomi 6.0.0 and later support 2.7, 3.3 and 3.4
* pyVmomi 5.5.0-2014.1 and 5.5.0-2014.1.1 support Python 2.6, 2.7, 3.3 and 3.4
* pyVmomi 5.5.0 and below support Python 2.6 and 2.7

Compatibility Policy
Expand All @@ -62,14 +63,15 @@ backward compatibility with the previous _four_ releases of *vSphere* and it's
own previous four releases. Compatibility with much older versions may continue
to work but will not be actively supported.

For example, version v5.5.0-2014.1 is most compatible with vSphere 5.5, 5.1,
5.0, and 4.1 and was the first release in 2014. Initial releases compatible with
a version of vSphere will bare a naked version number of v5.5.0 indicating that
version of pyVmomi was released simultaneously with the *GA* version of vSphere
with the same version number.
For example, version v6.0.0 is most compatible with vSphere 6.0, 5.5, 5.1 and
5.0. Initial releases compatible with a version of vSphere will bare a naked
version number of v6.0.0 indicating that version of pyVmomi was released
simultaneously with the *GA* version of vSphere with the same version number.

Releases
========
* `6.0.0 <https://github.com/vmware/pyvmomi/tree/v6.0.0>`_
release notes https://github.com/vmware/pyvmomi/releases/tag/v6.0.0
* `5.5.0-2014.1.1 <https://github.com/vmware/pyvmomi/tree/v5.5.0-2014.1.1>`_
release notes https://github.com/vmware/pyvmomi/releases/tag/v5.5.0-2014.1.1
* `5.5.0-2014.1 <https://github.com/vmware/pyvmomi/tree/v5.5.0-2014.1>`_
Expand Down
14 changes: 6 additions & 8 deletions sample/getallvms.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,12 @@

from __future__ import print_function

import pyVmomi

from pyVmomi import vim
from pyVmomi import vmodl

from pyVim.connect import SmartConnect, Disconnect
from pyVmomi import vmodl

import argparse
import atexit
import getpass

import ssl

def GetArgs():
"""
Expand Down Expand Up @@ -96,10 +90,14 @@ def main():
password = getpass.getpass(prompt='Enter password for host %s and '
'user %s: ' % (args.host,args.user))


context = ssl.SSLContext(ssl.PROTOCOL_TLSv1)
context.verify_mode = ssl.CERT_NONE
si = SmartConnect(host=args.host,
user=args.user,
pwd=password,
port=int(args.port))
port=int(args.port),
sslContext=context)
if not si:
print("Could not connect to the specified host using specified "
"username and password")
Expand Down
6 changes: 5 additions & 1 deletion sample/poweronvm.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
import atexit
import getpass
import sys
import ssl

def GetArgs():
"""
Expand Down Expand Up @@ -113,11 +114,14 @@ def main():
sys.exit()

si = None
context = ssl.SSLContext(ssl.PROTOCOL_TLSv1)
context.verify_mode = ssl.CERT_NONE
try:
si = SmartConnect(host=args.host,
user=args.user,
pwd=password,
port=int(args.port))
port=int(args.port),
sslContext=context)
except IOError:
pass
if not si:
Expand Down

1 comment on commit 51a54c0

@tianhao64
Copy link
Contributor

Choose a reason for hiding this comment

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

Fixed #231

Please sign in to comment.