1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2026-06-10 18:15:39 +00:00

fail gracefully on missing jenkins_plugin metadata

This commit is contained in:
Willy Hille 2026-06-08 16:58:27 +02:00
parent 6f4e8c43af
commit b2774528a7

View file

@ -508,10 +508,11 @@ class JenkinsPlugin:
if p["shortName"] == self.params["name"]:
self.is_installed = True
if p["pinned"]:
# cached entries don't carry metadata, fail gracefully on missing fields
if p.get("pinned"):
self.is_pinned = True
if p["enabled"]:
if p.get("enabled"):
self.is_enabled = True
break