Ticket #2273 (closed defect: Fixed)
zenmigrate GraphDefinitionsAndFriends acquisition sometimes breaks
| Reported by: | chris | Owned by: | jstevens |
|---|---|---|---|
| Priority: | 3 - Medium | Milestone: | zenoss-2.2 |
| Component: | ZenRRD | Version: | 2.1.0 |
| Keywords: | zenoss-2.1.1-patched | Cc: | |
| Community Patch Attached: | Deployed @ Customer: | ||
| Installer: | Maintenance Target: | ||
| Specific ZenPack: | Maintenance Status: | ||
| Documentation Note?: | Not required | Regression: |
Description
When running zenmigrate I came across the following error:
AttributeError: stacked
This comes as a result of the code in graphDefinitionsAndFriends.py:
oldGraph = getattr(template.graphs, graphDef.id, None)
if not oldGraph:
continue
for gp in graphDef.graphPoints():
gp.stacked = oldGraph.stacked
Jason says that we should not use getattr in this case but instead should use _getOb(). He also suggests this fix is applied to the 2.1.1 release.
Change History
Note: See
TracTickets for help on using
tickets.