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
F15436761: D11531.id27744.diff
Tue, Mar 25, 4:29 PM
F15420579: D11531.id27744.diff
Fri, Mar 21, 3:08 PM
F15419553: D11531.id.diff
Fri, Mar 21, 6:59 AM
F15415350: D11531.diff
Thu, Mar 20, 5:32 AM
Unknown Object (File)
Feb 21 2025, 11:56 AM
Unknown Object (File)
Feb 9 2025, 1:13 AM
Unknown Object (File)
Feb 8 2025, 1:43 AM
Unknown Object (File)
Feb 8 2025, 1:43 AM
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