pull/3/head
Thorsten Sick 4 years ago
parent 1564f3a42b
commit a4bda7a46c

@ -344,8 +344,8 @@ class CalderaControl():
"relationships": [] "relationships": []
} }
if parameters is not None:
facts = [] facts = []
if parameters is not None:
for k, v in parameters.items(): for k, v in parameters.items():
facts.append({"trait": k, "value": v}) facts.append({"trait": k, "value": v})
payload["facts"] = facts payload["facts"] = facts
@ -435,8 +435,8 @@ class CalderaControl():
"ability_id": ability_id, "ability_id": ability_id,
"obfuscator": obfuscator} "obfuscator": obfuscator}
if parameters is not None:
facts = [] facts = []
if parameters is not None:
for k, v in parameters.items(): for k, v in parameters.items():
facts.append({"trait": k, "value": v}) facts.append({"trait": k, "value": v})
payload["facts"] = facts payload["facts"] = facts

Loading…
Cancel
Save