Skip to content

Comments

HDDS-5081. Fix key put implementation#2

Closed
adoroszlai wants to merge 1 commit intoapache:masterfrom
adoroszlai:HDDS-5081
Closed

HDDS-5081. Fix key put implementation#2
adoroszlai wants to merge 1 commit intoapache:masterfrom
adoroszlai:HDDS-5081

Conversation

@adoroszlai
Copy link
Contributor

What changes were proposed in this pull request?

Replace hard-coded /tmp/asd local file with command-line argument for key put operation.

https://issues.apache.org/jira/browse/HDDS-5081

How was this patch tested?

./ozone-go --om localhost key put vol1/bucket1/passwd /etc/passwd

NOTE: this PR is intentionally created with a compile error.

@adoroszlai adoroszlai self-assigned this Apr 9, 2021
@adoroszlai adoroszlai requested review from cxorm and elek April 9, 2021 11:30
@adoroszlai
Copy link
Contributor Author

Will recreate once code import is sorted out.

@adoroszlai adoroszlai closed this Apr 9, 2021
ozoneClient := api.CreateOzoneClient(c.GlobalString("om"))
address := OzoneObjectAddressFromString(c.Args().Get(0))
f, err := os.Open("/tmp/asd")
f, err := os.Open(c.Args().Get(1)
Copy link
Member

@cxorm cxorm Apr 11, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change improves flexibility IMHO.

Thanks @adoroszlai for the contribution,
+1 (Let's merge it after importing POC code.)

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

Successfully merging this pull request may close these issues.

2 participants