Repository: ansible-collections/community.general

Issue:
onepassword_raw; V2 (general 6.0.0); domain was not defined in configuration.
### Summary

Hi.

I have just upgraded to General 6.0.0 which includes support for 1Password V2.

The same Ansible configuration from v1 throws:
"An unhandled exception occurred while running the lookup plugin 'community.general.onepassword_raw'. Error was a <class 'KeyError'>, original message: 'Requested entry (plugin_type: lookup plugin: ansible_collections.community.general.plugins.lookup.onepassword_raw setting: domain ) was not defined in configuration.'. 'Requested entry (plugin_type: lookup plugin: ansible_collections.community.general.plugins.lookup.onepassword_raw setting: domain ) was not defined in configuration.'"

### Issue Type

Bug Report

### Component Name

community/general/plugins/lookup/onepassword_raw.py

### Ansible Version

```console (paste below)
$ ansible --version

```
ansible [core 2.13.5]
...
  python version = 3.8.10 (default, Jun 22 2022, 20:18:18) [GCC 9.4.0]
  jinja version = 3.1.2
  libyaml = True

### Community.general Version

```console (paste below)
$ ansible-galaxy collection list community.general

```
community.general 6.0.0

### Configuration

```console (paste below)
$ ansible-config dump --only-changed

```
- hosts: localhost
  vars:
    record: "my_record"
    vault: "my_vault"
  tasks:
    - set_fact:
        onepassword_items: "{{ lookup('community.general.onepassword_raw', record, vault=vault) | default({}, true) }}"
    - debug:
        msg: "{{ onepassword_items }}"

### OS / Environment

Distributor ID: Ubuntu
Description:    Ubuntu 20.04.5 LTS
Release:        20.04
Codename:       focal

### Steps to Reproduce

<!--- Paste example playbooks or commands between quotes below -->
```yaml (paste below)

```
eval $(op signin)
ansible-playbook my_playbook.yml

### Expected Results

I expect the contents of the record in the vault to display.

### Actual Results

```console (paste below)

```
"An unhandled exception occurred while running the lookup plugin 'community.general.onepassword_raw'. Error was a <class 'KeyError'>, original message: 'Requested entry (plugin_type: lookup plugin: ansible_collections.community.general.plugins.lookup.onepassword_raw setting: domain ) was not defined in configuration.'. 'Requested entry (plugin_type: lookup plugin: ansible_collections.community.general.plugins.lookup.onepassword_raw setting: domain ) was not defined in configuration.'"

### Code of Conduct

- [X] I agree to follow the Ansible Code of Conduct


Discussion:
Files identified in the description:
None

If these files are incorrect, please update the `component name` section of the description or use the `!component` bot command.

[click here for bot help](https://github.com/ansible/ansibullbot/blob/devel/ISSUE_HELP.md)
<!--- boilerplate: components_banner --->
Tagging @samdoran 
I just quick-tested using community.general.onepassword.py and this works for a specific query.
!component =plugins/lookup/onepassword_raw.py
Files identified in the description:
* [`plugins/lookup/onepassword_raw.py`](https://github.com/ansible-collections/community.general/blob/main/plugins/lookup/onepassword_raw.py)

If these files are incorrect, please update the `component name` section of the description or use the `!component` bot command.

[click here for bot help](https://github.com/ansible/ansibullbot/blob/devel/ISSUE_HELP.md)
<!--- boilerplate: components_banner --->
cc @azenk @scottsb
[click here for bot help](https://github.com/ansible/ansibullbot/blob/devel/ISSUE_HELP.md)
<!--- boilerplate: notify --->
I'll have a fix up shortly.

Resolving patch:
diff --git a/plugins/lookup/onepassword.py b/plugins/lookup/onepassword.py
--- a/plugins/lookup/onepassword.py
+++ b/plugins/lookup/onepassword.py
@@ -32,7 +32,7 @@
       section:
         description: Item section containing the field to retrieve (case-insensitive). If absent will return first match from any section.
       domain:
-        description: Domain of 1Password. Default is U(1password.com).
+        description: Domain of 1Password.
         version_added: 3.2.0
         default: '1password.com'
         type: str
diff --git a/plugins/lookup/onepassword_raw.py b/plugins/lookup/onepassword_raw.py
--- a/plugins/lookup/onepassword_raw.py
+++ b/plugins/lookup/onepassword_raw.py
@@ -30,6 +30,11 @@
         description: Item section containing the field to retrieve (case-insensitive). If absent will return first match from any section.
       subdomain:
         description: The 1Password subdomain to authenticate against.
+      domain:
+        description: Domain of 1Password.
+        version_added: 6.0.0
+        default: '1password.com'
+        type: str
       username:
         description: The username used to sign in.
       secret_key:


Test patch: