Skip to content

Commit

Permalink
Fix for issue Azure#7522
Browse files Browse the repository at this point in the history
  • Loading branch information
mentat9 committed Jan 12, 2019
1 parent 2bf0e39 commit bd86fc6
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ protected PSObject[] GetFilteredOutputObjects(string resourceType, ListFilter fi
return true;
}
var policyType = result.Properties["PolicyType"];
return policyType == null || string.Equals(policyType.Value.ToString(), filter.ToString(), StringComparison.OrdinalIgnoreCase);
var policyType = ((PSObject)result.Properties["Properties"].Value).Properties["policyType"].Value;
return policyType == null || string.Equals(policyType.ToString(), filter.ToString(), StringComparison.OrdinalIgnoreCase);
};

return resources
Expand Down

0 comments on commit bd86fc6

Please sign in to comment.