Skip to content

Commit

Permalink
sanity fix
Browse files Browse the repository at this point in the history
  • Loading branch information
alaa-bish committed Oct 12, 2023
1 parent 8146dd9 commit 58e24c6
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 deletions.
15 changes: 15 additions & 0 deletions plugins/doc_fragments/ntnx_vms_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,4 +194,19 @@ class ModuleDocFragment(object):
- CDROM
- DISK
- NETWORK
owner:
description: Name or UUID of the owner
required: false
type: dict
suboptions:
name:
description:
- Owner Name
- Mutually exclusive with C(uuid)
type: str
uuid:
description:
- Owner UUID
- Mutually exclusive with C(name)
type: str
"""
6 changes: 2 additions & 4 deletions plugins/module_utils/prism/vms.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
from .images import get_image_uuid
from .prism import Prism
from .projects import Project
from .users import User
from .spec.categories_mapping import CategoriesMapping
from .subnets import get_subnet_uuid
from .users import User


class VM(Prism):
Expand Down Expand Up @@ -234,9 +234,7 @@ def _build_spec_owner(self, payload, param):
elif "uuid" in param:
uuid = param["uuid"]

payload["metadata"].update(
{"owner_reference": {"uuid": uuid, "kind": "user"}}
)
payload["metadata"].update({"owner_reference": {"uuid": uuid, "kind": "user"}})
return payload, None

def _build_spec_cluster(self, payload, param):
Expand Down

0 comments on commit 58e24c6

Please sign in to comment.