removed store_credentials flag which is not usable on most of server machines

This commit is contained in:
iLLiCiTiT 2021-05-26 18:28:28 +02:00
parent a9cf091e86
commit b986197a53
2 changed files with 0 additions and 12 deletions

View file

@ -62,8 +62,6 @@ def tray(debug=False):
help="Ftrack api key")
@click.option("--no-stored-credentials", is_flag=True,
help="don't use stored credentials")
@click.option("--store-credentials", is_flag=True,
help="store provided credentials")
@click.option("--legacy", is_flag=True,
help="run event server without mongo storing")
@click.option("--clockify-api-key", envvar="CLOCKIFY_API_KEY",
@ -75,7 +73,6 @@ def eventserver(debug,
ftrack_user,
ftrack_api_key,
no_stored_credentials,
store_credentials,
legacy,
clockify_api_key,
clockify_workspace):
@ -83,10 +80,6 @@ def eventserver(debug,
This should be ideally used by system service (such us systemd or upstart
on linux and window service).
You have to set either proper environment variables to provide URL and
credentials or use option to specify them. If you use --store_credentials
provided credentials will be stored for later use.
"""
if debug:
os.environ['OPENPYPE_DEBUG'] = "3"
@ -96,7 +89,6 @@ def eventserver(debug,
ftrack_user,
ftrack_api_key,
no_stored_credentials,
store_credentials,
legacy,
clockify_api_key,
clockify_workspace

View file

@ -423,7 +423,6 @@ def run_event_server(
ftrack_user,
ftrack_api_key,
no_stored_credentials,
store_credentials,
legacy,
clockify_api_key,
clockify_workspace
@ -448,9 +447,6 @@ def run_event_server(
print('Exiting! < Please enter valid credentials >')
return 1
if store_credentials:
credentials.save_credentials(username, api_key, ftrack_url)
# Set Ftrack environments
os.environ["FTRACK_SERVER"] = ftrack_url
os.environ["FTRACK_API_USER"] = username