Skip to content

Commit

Permalink
Merge pull request #32 from nutanix/test
Browse files Browse the repository at this point in the history
black fixes
  • Loading branch information
Gevorg-Khachatryan-97 authored Jan 24, 2022
2 parents da2fcb5 + 43f9a04 commit 703bd9e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 12 deletions.
8 changes: 2 additions & 6 deletions nutanix/ncp/plugins/modules/nutanix_vms.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,9 +289,7 @@ def run_module():
metadata__uuid=dict(type="str", aliases=["uuid"], required=False),
spec__resources__num_sockets=dict(type="int", default=1, aliases=["vcpus"]),
spec__resources__num_vcpus_per_socket=dict(
type="int",
default=1,
aliases=["cores_per_vcpu"],
type="int", default=1, aliases=["cores_per_vcpu"]
),
cluster=dict(
type="dict",
Expand All @@ -315,9 +313,7 @@ def run_module():
type="list",
elements="dict",
aliases=["networks"],
mutually_exclusive=[
("subnet_uuid", "subnet_name")
],
mutually_exclusive=[("subnet_uuid", "subnet_name")],
options=dict(
uuid=dict(type="str", aliases=["nic_uuid"]),
subnet_uuid=dict(type="str"),
Expand Down
8 changes: 2 additions & 6 deletions nutanix/ncp/tests/unit/plugins/module_utils/test_entity.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,7 @@ def test_negative_create_action(self):
action = "present"

self.builder.data = {}
self.builder.credentials = {
"username": self.builder.username,
}
self.builder.credentials = {"username": self.builder.username}
exception = None
try:
self.builder.action = action
Expand Down Expand Up @@ -125,9 +123,7 @@ def test_negative_update_action(self):
action = "present"

self.builder.data = {}
self.builder.credentials = {
"username": self.builder.username,
}
self.builder.credentials = {"username": self.builder.username}
exception = None
try:
self.builder.action = action
Expand Down

0 comments on commit 703bd9e

Please sign in to comment.