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:
parent
6f4e8c43af
commit
b2774528a7
1 changed files with 3 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue