Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions samples/vcenter_details.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@ def parse_service_instance(service_instance):
"""

content = service_instance.RetrieveContent()
object_view = content.viewManager.CreateContainerView(content.rootFolder,
[], True)
object_view = content.viewManager.CreateContainerView(content.rootFolder, [], True)
for obj in object_view.view:
print(obj)
if isinstance(obj, vim.VirtualMachine):
Expand Down
9 changes: 7 additions & 2 deletions samples/vm_perf_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,20 @@
"""

from pyVmomi import vim
from tools import cli
import argparse
from pyVim.connect import SmartConnectNoSSL, Disconnect
import atexit
import sys


def main():

args = cli.get_args()
parser = argparse.ArgumentParser()
parser.add_argument("host")
parser.add_argument("user")
parser.add_argument("password")
parser.add_argument("port")
args = parser.parse_args()

# Connect to the host without SSL signing
try:
Expand Down