-
Notifications
You must be signed in to change notification settings - Fork 42
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
pulp file content upload: --chunk-size option should allow unit specifier in arg #260
Comments
In the meantime, you can use shell arithmetic |
We do this in pulpcore/export for chunk_size - see https://github.com/pulp/pulpcore/blob/master/pulpcore/app/serializers/exporter.py#L218, based on https://stackoverflow.com/a/42865957/2002471 |
gerrod3
added a commit
to gerrod3/pulp-cli
that referenced
this issue
Aug 18, 2021
gerrod3
added a commit
to gerrod3/pulp-cli
that referenced
this issue
Aug 26, 2021
gerrod3
added a commit
to gerrod3/pulp-cli
that referenced
this issue
Aug 26, 2021
ggainey
pushed a commit
that referenced
this issue
Aug 27, 2021
I'm an idiot, pushed the wrong button. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
From https://pulp.plan.io/issues/8838
Following up from IRC, this:
currently takes a value whose unit is assumed to be bytes.
For larger values, it would be extremely useful to allow a unit to be specified, such as 'k', 'm', 'g' (or, if you think differentiating between powers of 10 vs powers of 2 is important, an alternate specifier). A simple approach might be to match nginx (that's how I ran into this, after modifying the client_max_body_size option). I'm new to pulp, so I don't know what other examples there are within pulp.
The text was updated successfully, but these errors were encountered: