Skip to content

Commit

Permalink
fix key not exist in facts
Browse files Browse the repository at this point in the history
  • Loading branch information
roverflow committed Jan 15, 2024
1 parent 42d6032 commit 7fd7f52
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def populate_facts(self, connection, ansible_facts, data=None):
spanning_tree_parser.validate_config(self.argument_spec, {"config": objs}, redact=True),
)

facts["spanning_tree"] = params["config"]
facts["spanning_tree"] = params.get("config", {})
ansible_facts["ansible_network_resources"].update(facts)

return ansible_facts

0 comments on commit 7fd7f52

Please sign in to comment.