Skip to content

Usage of --cli flag is unintentionaly persistent #20

Description

@KPrasch

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions