-
Notifications
You must be signed in to change notification settings - Fork 104
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
upload-stemcell requires absolute filepath when filename contains brackets #498
Comments
We have created an issue in Pivotal Tracker to manage this. Unfortunately, the Pivotal Tracker project is private so you may be unable to view the contents of the story. The labels on this github issue will be updated when the story is started. |
Hi @drawsmcgraw! Our team has other things that we are focusing on at the moment, and would prefer to just document that you have to use an absolute path. If you would like to submit a PR so |
Thanks @kcboyle! Completely understand the priorities and I agree that the most reasonable path is to document the need. I'm not sure where the best place for that is (help output? official docs?) but I'd be happy to file a docs PR if you point me in the right direction. |
Hi! om upload-stemcell -h
This command will upload a stemcell to the target Ops Manager. Unless the force flag is used, if the stemcell already exists that upload will be skipped
Usage:
om [options] upload-stemcell [<args>]
Flags:
--config, -c string path to yml file for configuration (keys must match the following command line flags)
--floating string assigns the stemcell to all compatible products (default: true)
--force, -f bool upload stemcell even if it already exists on the target Ops Manager
--shasum string shasum of the provided product file to be used for validation
--stemcell, -s string (required) path to stemcell we could update |
I would have certainly found it in the help output. I would suggest making it a little more on-the-nose, though, because I'm extremely hard-headed. Something along the lines of :
|
Sounds good to me! Happy to accept a PR if you are so inclined, or we will get to this eventually :) |
actually, this literally took less time to do than we talked about it. Should be fixed now (on |
@drawsmcgraw we were taking a look at this again, and are adding support for relative paths. It should come out in the next release of |
…#498] Signed-off-by: Kira Boyle <[email protected]>
When
om download-product
downloads a stemcell, the stemcell filename is prefixed with brackets for metadata (i.e.[product-slug,product-version]product-filename.tgz
).When
om upload-stemcell
is used on files with names like this, the upload fails with a message similar to the following:In the above example, the command run was:
And
DOWNLOAD_DIR
has the valuetmp-download
.My expectation was that relative paths would be fine but it looks like it requires absolute paths.
Understanding that a fix to the behavior may be nontrivial, maybe the docs/help output could be amended to say as much regarding absolute/relative paths?
The text was updated successfully, but these errors were encountered: