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

convenience commands broken in surl 1.0 #42

Open
Roadmaster opened this issue Nov 29, 2022 · 1 comment
Open

convenience commands broken in surl 1.0 #42

Roadmaster opened this issue Nov 29, 2022 · 1 comment

Comments

@Roadmaster
Copy link
Contributor

$ surl.metrics -a production -s production --web-login
Traceback (most recent call last):
  File "/snap/surl/419/bin/surl_metrics.py", line 159, in <module>
    sys.exit(main())
  File "/snap/surl/419/bin/surl_metrics.py", line 107, in main
    config, remainder = surl.get_config_from_cli(parser, auth_dir)
ValueError: too many values to unpack (expected 2)

These probably just need adapting to the changes introduced in surl 1.0.

The three convenience scripts are surl_metrics, surl_storeops and surl_month_in_snaps.

@Roadmaster
Copy link
Contributor Author

Example runs:

$ surl.metrics -a production -s production -p package_metrics --web-login --force watson weekly_installed_base_by_channel
Opening an authorization web page in your browser.
If it does not open, please open this URL:
 https://api.jujucharms.com/identity/login?did=<elided> 

Resolving snap_id for watson ...
Collecting publisher metrics for 1GPXiHsyVe9qoGgyljOMTpZHERBJitFD ...
Terms      Values
-------  --------
stable        115
edge            1

another:

$ surl.monthinsnaps -a production -s production -p package_metrics --web-login 
getting snaps
getting metrics

(the above didn't complete because given my permissions I think it's trying to get metrics for all snaps or something :)

surl.storeops -a production -s production -p package_metrics --web-login

the above just spewed a list of snaps, not sure what it does.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant