Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Usage of --cli flag is unintentionaly persistent #20

Open
KPrasch opened this issue May 10, 2023 · 0 comments
Open

Usage of --cli flag is unintentionaly persistent #20

KPrasch opened this issue May 10, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@KPrasch
Copy link
Member

KPrasch commented May 10, 2023

If an ursula is launched with the --cli/-c option, the value is written ti the disk and subsequent runs remember the previous run's launch flags - even if they are invalid.

Attempting to launch on mumbai with the wring flag name by accident:

 nucypher-ops ursula update --nucypher-image nucypher/nucypher:lynx  ... --cli eth-provider-uri=https://polygon-mumbai.infura.io/v3/... --cli network=mumbai
...
Error: No such option: --eth-provider-uri (Possible options: --eth-provider, --payment-provider)
Usage: nucypher ursula run [OPTIONS]
Try 'nucypher ursula run --help' for help.

Fixed eth-provider-uri -> eth-provider but the error persists because the flags key/value pair is loaded from the disk.

 nucypher-ops ursula update --nucypher-image nucypher/nucypher:lynx  ... --cli eth-provider=https://polygon-mumbai.infura.io/v3/... --cli network=mumbai
...
Error: No such option: --eth-provider-uri (Possible options: --eth-provider, --payment-provider)
Usage: nucypher ursula run [OPTIONS]
Try 'nucypher ursula run --help' for help.

@KPrasch KPrasch added the bug Something isn't working label May 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant