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

Access fields with op.get_item returns field IDs instead of field labels #68

Open
traviscook21 opened this issue Oct 31, 2024 · 0 comments

Comments

@traviscook21
Copy link

traviscook21 commented Oct 31, 2024

Describe the bug
Using 1password CLI 2, there's been a regression of op.get_item when passing fields. It used to be that passing fields would return a dictionary with keys of field names and values of the field values. Now, it returns key with field UUIDs and values with the field values.

Root issue is there reference to id instead of label here:

item[i["id"]] = i["value"]

To Reproduce
Steps to reproduce the behavior:

  1. Create a credential in a vault with a custom field called foo and value of bar
  2. Call op.get_item($new_field_id", ["foo"])
  3. See the return of {"$arbitrary_uuid": "bar"}

Expected behavior
A clear and concise description of what you expected to happen.

I'd expect a return of {"foo": "bar"}

Desktop (please complete the following information):

  • OS: Mac Sequoia
  • Browser: Arc
  • Version 1.65.0

Additional context
Using 1password 1.0.9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant