HomePhorge

Prevent an error when the Drydock lease artifact does not exist

Description

Prevent an error when the Drydock lease artifact does not exist

Summary: If a host artifact exists in a Harbormaster build, where the Drydock lease no longer exists, then an error will be raised because of the attempt to access an undefined index. This changes the code to use idx() so that it correctly returns null instead.

Test Plan: Tested in production.

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley, #blessed_reviewers

Subscribers: joshuaspence, Korvin, epriestley

Differential Revision: https://secure.phabricator.com/D13074

Details

Provenance
J RhodesAuthored on May 31 2015, 7:39 AM
themackabuPushed on Mar 25 2025, 8:07 PM
Parents
rP8ea13f3ce934: Framework for external symbol search
Branches
Unknown
Tags
Unknown

Event Timeline