Page MenuHomePhabricator

Use idx() to access resource attributes in case it's not set on the resource
AbandonedPublic

Authored by hach-que on Jan 28 2015, 1:11 AM.
Tags
None
Referenced Files
F19059169: D11531.diff
Sat, Nov 29, 4:42 AM
F18852046: D11531.diff
Oct 31 2025, 6:26 AM
F18848762: D11531.id.diff
Oct 30 2025, 6:11 AM
F18844362: D11531.diff
Oct 29 2025, 4:54 AM
F18809801: D11531.id27744.diff
Oct 19 2025, 5:00 PM
F18703714: D11531.diff
Sep 28 2025, 4:54 AM
F18565742: D11531.id.diff
Sep 9 2025, 1:41 PM
F18496427: D11531.diff
Sep 4 2025, 5:26 PM
Subscribers

Details

Reviewers
epriestley
Group Reviewers
Blessed Reviewers
Summary

Manually created resources might not have attributes set against them. Ensure that we don't error due to a missing key when retrieving custom attributes on resources.

Depends on all the other Drydock patches first.

Test Plan

Noticed this when using a resource made with create-resource and attempting to allocate against it.

Diff Detail

Repository
rP Phabricator
Branch
attributes-fix
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 4102
Build 4115: [Placeholder Plan] Wait for 30 Seconds

Event Timeline

hach-que retitled this revision from to Use idx() to access resource attributes in case it's not set on the resource.
hach-que updated this object.
hach-que edited the test plan for this revision. (Show Details)
hach-que added a reviewer: epriestley.
epriestley edited edge metadata.
This revision is now accepted and ready to land.Jan 28 2015, 7:11 PM