Skip to content

Commit

Permalink
[FIX] sys.exit added
Browse files Browse the repository at this point in the history
- sys.exit added
  • Loading branch information
waldirio authored Oct 17, 2021
1 parent 009d327 commit 4a09a18
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions rvtools/rvtools.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/usr/bin/env python
""" Main rvtools module """

import sys
import os
import ssl
import argparse
Expand Down Expand Up @@ -59,7 +60,7 @@ def main():
obj = CoreCode()
conn = obj.read_conf_file()
if conn is None:
exit()
sys.exit()
else:
server = conn._vcenter
username = conn._username
Expand All @@ -68,7 +69,7 @@ def main():
if server == '<fqdn>':
print("You are using default values. Please update the file")
print("~/.rvtools.conf or just pass all mandatory parameters.")
exit()
sys.exit()
else:
print("Using flags")
server = args.host
Expand All @@ -79,7 +80,7 @@ def main():

if not os.path.isdir(directory):
print("You have to create the dir {}".format(directory))
exit()
sys.exit()

ssl_context = ssl._create_unverified_context()

Expand Down

0 comments on commit 4a09a18

Please sign in to comment.