Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #75097

Using pyVmomi

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!weretis.net!feeder4.news.weretis.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed3a.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <jcasale@activenetwerx.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.029
X-Spam-Evidence '*H*': 0.94; '*S*': 0.00; 'elegant': 0.07; 'calls.': 0.09; 'scripting': 0.09; 'blocks': 0.16; 'invoking': 0.16; 'received:172.18.0': 0.16; 'retry': 0.16; 'vmware': 0.16; 'to:name :python-list@python.org': 0.22; 'header:Received:8': 0.24; 'server.': 0.24; 'properties': 0.29; 'code': 0.31; 'anyone': 0.31; 'thanks!': 0.32; 'run': 0.32; 'style': 0.33; "i'd": 0.34; 'possible.': 0.35; 'objects': 0.35; 'programming,': 0.36; 'scheme': 0.36; 'doing': 0.36; 'charset:us-ascii': 0.36; 'to:addr :python-list': 0.38; 'does': 0.39; 'to:addr:python.org': 0.39; 'received:unknown': 0.61; 'subject:Using': 0.84; 'surpasses': 0.84
X-Cloudmark-SP-Filtered true
X-Cloudmark-SP-Result v=1.1 cv=vC3pk2euBDNChG//pvWvL3ooOWecHx7HOhb0No4pI08= c=1 sm=1 a=7PYXob_7ZXMA:10 a=P90J6pEA2ccA:10 a=BLceEmwcHowA:10 a=kj9zAlcOel0A:10 a=xqWC_Br6kY4A:10 a=oNw28mxuUhXRB3mVwYQ4Ag==:17 a=vTfFMsDNrZuj0hTH2X0A:9 a=CjuIK1q_8ugA:10 a=HpAAvcLHHh0Zw7uRqdWCyQ==:117
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/simple; d=activenetwerx.com; s=default; t=1406146467; bh=okrhG+detkAzU+AP5Y9PlwM+kEy8V2j3GzUY68q0IK0=; h=From:To:Subject:Date; b=OB67t8FPx5OzrfMtgxDeCmqVAC59BliLDNlRxxfMDER+5G3xl1CTLRn3K7UDrThuV KO94ZM14L0sZtwIgqTnFCHr65e6NRbt8OH84irr2AiSQdNBJStbfiQiD5jKt5C5qHa BIHHejx9YS4DuqPNSiypmMdVdsbWzn/G5mWeEYkE=
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/simple; d=activenetwerx.com; s=default; t=1406146467; bh=okrhG+detkAzU+AP5Y9PlwM+kEy8V2j3GzUY68q0IK0=; h=From:To:Subject:Date; b=OB67t8FPx5OzrfMtgxDeCmqVAC59BliLDNlRxxfMDER+5G3xl1CTLRn3K7UDrThuV KO94ZM14L0sZtwIgqTnFCHr65e6NRbt8OH84irr2AiSQdNBJStbfiQiD5jKt5C5qHa BIHHejx9YS4DuqPNSiypmMdVdsbWzn/G5mWeEYkE=
X-Spam-Checker-Version SpamAssassin 3.3.1 (2010-03-16) on mail.activenetwerx.com
X-Spam-Level
X-Spam-Status No, score=-1.0 required=5.0 tests=ALL_TRUSTED autolearn=ham version=3.3.1
From "Joseph L. Casale" <jcasale@activenetwerx.com>
To "python-list@python.org" <python-list@python.org>
Subject Using pyVmomi
Thread-Topic Using pyVmomi
Thread-Index AQHPprJbYhOG+1zSy0SyE1az0eB7IQ==
Date Wed, 23 Jul 2014 20:14:20 +0000
Accept-Language en-US
Content-Language en-US
X-MS-Has-Attach
X-MS-TNEF-Correlator
x-originating-ip [172.18.0.4]
Content-Type text/plain; charset="us-ascii"
Content-Transfer-Encoding quoted-printable
MIME-Version 1.0
X-Virus-Scanned ClamAV using ClamSMTP
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.12248.1406146538.18130.python-list@python.org> (permalink)
Lines 18
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1406146538 news.xs4all.nl 2940 [2001:888:2000:d::a6]:58264
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:75097

Show key headers only | View raw


I am doing some scripting with pyVmomi under 2.6.8 so the code may
run directly on a vmware esxi server.

As the code is long running, it surpasses the authentication timeout. For
anyone familiar with this code and/or this style of programming, does anyone
have a recommendation for an elegant authentication retry scheme for objects
passed to code that will intermittently access the properties invoking calls.

I'd prefer to not litter try/except blocks around the usage of the objects if
possible.

Thanks!
jlc

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Using pyVmomi "Joseph L. Casale" <jcasale@activenetwerx.com> - 2014-07-23 20:14 +0000

csiph-web