add v1 vs. v2 inclusion/exclusion

This commit is contained in:
Chris Meyers
2017-05-26 14:04:15 -04:00
parent b25b397e14
commit 441946d332
2 changed files with 4 additions and 1 deletions

View File

@@ -2073,6 +2073,8 @@ class HostInsights(GenericAPIView):
model = Host
serializer_class = EmptySerializer
new_in_320 = True
new_in_api_v2 = True
def _extract_insights_creds(self, credential):
return (credential.inputs['username'], decrypt_field(credential, 'password'))