vmware/pyvmomi-community-samples

Do not swallow errors!

Open

#11 opened on 2014年5月21日

GitHub で見る
 (1 comment) (0 reactions) (0 assignees)Python (972 stars) (914 forks)batch import
enhancementhelp wanted

説明

https://github.com/vmware/pyvmomi-community-samples/blob/master/samples/create_random_marvel_vms.py#L195

In sample code, don't trap errors coming off of ...

si = connect.SmartConnect(

... instead just expose those to the CLI. We are attempting to make teaching samples here and too thoroughly swallowing or handling errors can make the samples harder to read and understand for programmers who are still learning.

コントリビューターガイド

Do not swallow errors! · vmware/pyvmomi-community-samples#11 | Good First Issue