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
F13167668: D11531.diff
Tue, May 7, 7:18 AM
Unknown Object (File)
Sun, May 5, 2:29 PM
Unknown Object (File)
Fri, May 3, 4:18 AM
Unknown Object (File)
Tue, Apr 30, 4:44 PM
Unknown Object (File)
Thu, Apr 25, 12:58 AM
Unknown Object (File)
Mon, Apr 22, 7:32 PM
Unknown Object (File)
Mar 29 2024, 4:57 PM
Unknown Object (File)
Mar 28 2024, 6:23 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