Fix: Add check for "stopped" before reading text 52/68352/5 v0.35.5
authorEric Ball <eball@linuxfoundation.org>
Wed, 28 Jul 2021 13:33:12 +0000 (06:33 -0700)
committerEric Ball <eball@linuxfoundation.org>
Wed, 28 Jul 2021 15:08:13 +0000 (08:08 -0700)
commite083184d9f913e8d54a7bb1deb610b8860526e19
treec3ee05045c70a26ae56c3c6d934a27207ade59e4
parentebdc17237756e0b2aada8b8af442a12540f44237
Fix: Add check for "stopped" before reading text

nexus.release_staging_repo has an error condition if the staging repo
is not released when checked, as a non-existent "stopped" field will
return a NoneType, causing an error when .text is read. We avoid this
by checking for the existence of the "stopped" field before attempting
to read the text.

Issue: RELENG-3813
Change-Id: I0fae854a3ee52118806f70ea8b6faacc5fda430b
Signed-off-by: Eric Ball <eball@linuxfoundation.org>
lftools/nexus/cmd.py
releasenotes/notes/fix-release-no-attribute-45a84f852233ef36.yaml [new file with mode: 0644]