Skip to content

Commit

Permalink
upload_file_to_datastore: Don't define duplicate -S flag (vmware#387)
Browse files Browse the repository at this point in the history
Change 36e5579 introduced a '--disable_ssl_verification' flag in the
common argument definitions in tools.cli. By specifying it in the
upload_file_to_datastore script as well, the script will raise an
exception about "conflicting option string(s)" at startup. We don't need
it defined twice, so we can safely remove it from the
upload_file_to_datastore script.
  • Loading branch information
olof authored and tianhao64 committed Jun 29, 2017
1 parent 74465cc commit dc03f27
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions samples/upload_file_to_datastore.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,6 @@ def get_args():
required=True,
action='store',
help='Path on datastore to place file')
parser.add_argument('-S', '--disable_ssl_verification',
required=False,
action='store_true',
help='Disable ssl host certificate verification')
args = parser.parse_args()

return cli.prompt_for_password(args)
Expand Down

0 comments on commit dc03f27

Please sign in to comment.