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

ascli config preset set GLOBAL version_check_days 0 causes a bad config.yaml to be written #175

Open
junkimu opened this issue Feb 11, 2025 · 1 comment
Assignees
Labels
bug Something isn't working fixed A fix was provided in a version

Comments

@junkimu
Copy link

junkimu commented Feb 11, 2025

tested on 4.20.0

> ascli config initdemo
> ascli config preset set GLOBAL version_check_days 0

This creates the following config.yaml

---
config:
  version: 4.20.0
demoserver:
  url: ssh://demo.asperasoft.com:33001
  username: aspera
  password: demoaspera
default:
  server: demoserver
  config: global_common_defaults
global_common_defaults:
  version_check_days: '0'

note the '0' in quotes. Any subsequent ascli invocation will fail.

> ascli config preset get GLOBAL version_check_days
ERROR: Other(ArgumentError): comparison of Rational with String failed
ERROR: Argument: unprocessed values: ["config", "preset", "get", "GLOBAL", "version_check_days"]
Use --log-level=debug to get more details.

To work around, manually edit config.yaml and remove the quotes around the 0.

@laurent-martin laurent-martin self-assigned this Feb 11, 2025
@laurent-martin laurent-martin added the bug Something isn't working label Feb 11, 2025
@laurent-martin
Copy link
Member

Thanks, for reporting, yes, it's a bug ...

laurent-martin added a commit that referenced this issue Feb 11, 2025
@laurent-martin laurent-martin added the fixed A fix was provided in a version label Feb 11, 2025
laurent-martin added a commit that referenced this issue Feb 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working fixed A fix was provided in a version
Projects
None yet
Development

No branches or pull requests

2 participants