result var moved to correct scope
Merge pull request #14 from zenoss/feature/ZEN-11432

result var moved to correct scope