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

Object put from STDIN fails when piping input #21

Closed
jakupovic opened this issue Sep 28, 2017 · 2 comments
Closed

Object put from STDIN fails when piping input #21

jakupovic opened this issue Sep 28, 2017 · 2 comments

Comments

@jakupovic
Copy link

This doesn't work:

elvis-mac:ansible ejakupov$ echo "tst" | oci os object put --namespace my-namespace -bn backup --name backup/logging/test.tgz --file -
IOError: [Errno 29] Illegal seek

whereas this works
elvis-mac:ansible ejakupov$ oci os object put --namespace my-namespace -bn backup --name backup/logging/test.tgz --file - <<< "tst"
{
"etag": "5A487BF2EC84B94DE053C254C00A5918",
"last-modified": "Thu, 28 Sep 2017 22:46:05 GMT",
"opc-content-md5": "dGou+QLPdZbQyfZq3VUk1Q=="
}

I would expect both commands to work.

@jodoglevy
Copy link
Member

Thanks for reporting, we'll take a look

@mross22
Copy link
Member

mross22 commented Oct 13, 2017

This is fixed in our latest release: https://github.com/oracle/oci-cli/releases/tag/v2.4.10

@mross22 mross22 closed this as completed Oct 13, 2017
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

3 participants