Skip to content

Commit

Permalink
fix config list failure (#99)
Browse files Browse the repository at this point in the history
* fix config list failure

* upgrade version
  • Loading branch information
swethalohith2 authored Aug 7, 2024
1 parent 5df0e54 commit dec2dd9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion synctl/__version__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '2.0.0'
__version__ = '2.0.1'
22 changes: 11 additions & 11 deletions synctl/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -4854,17 +4854,6 @@ def main():
app_instance = Application()


# set --verify-tls
if get_args.verify_tls is not None:
syn_instance.set_insecure(get_args.verify_tls)
alert_instance.set_insecure(get_args.verify_tls)
cred_instance.set_insecure(get_args.verify_tls)
patch_instance.set_insecure(get_args.verify_tls)
update_instance.set_insecure(get_args.verify_tls)
update_alert.set_insecure(get_args.verify_tls)
pop_instance.set_insecure(get_args.verify_tls)
app_instance.set_insecure(get_args.verify_tls)

# both host and token are required when using in command line
if get_args.host is not None and get_args.token is not None:
syn_instance.set_host_token(
Expand Down Expand Up @@ -4899,6 +4888,17 @@ def main():
summary_instance.set_auth(auth)
app_instance.set_auth(auth)

# set --verify-tls
if get_args.verify_tls is not None :
syn_instance.set_insecure(get_args.verify_tls)
alert_instance.set_insecure(get_args.verify_tls)
cred_instance.set_insecure(get_args.verify_tls)
patch_instance.set_insecure(get_args.verify_tls)
update_instance.set_insecure(get_args.verify_tls)
update_alert.set_insecure(get_args.verify_tls)
pop_instance.set_insecure(get_args.verify_tls)
app_instance.set_insecure(get_args.verify_tls)

if COMMAND_CONFIG == get_args.sub_command:
if get_args.config_type == "list":
if get_args.show_token is True:
Expand Down

0 comments on commit dec2dd9

Please sign in to comment.