returning invalid security (#58595)

This commit is contained in:
Chris Archibald 2019-07-09 21:40:32 -07:00 committed by Jake Jackson
parent 9e67953b2e
commit 8731fc7a86
2 changed files with 2 additions and 3 deletions

View file

@ -177,7 +177,7 @@ class NetAppONTAPGatherFacts(object):
'kwargs': {
'call': 'security-login-get-iter',
'attribute': 'security-login-account-info',
'field': ('user-name', 'application', 'authentication-method'),
'field': ('vserver', 'user-name', 'application', 'authentication-method'),
'query': {'max-records': '1024'},
},
'min_version': '0',

View file

@ -9,7 +9,7 @@ import pytest
import sys
from units.compat import unittest
from units.compat.mock import patch
from units.compat.mock import patch, Mock
from ansible.module_utils import basic
from ansible.module_utils._text import to_bytes
import ansible.module_utils.netapp as netapp_utils
@ -64,7 +64,6 @@ class MockONTAPConnection(object):
def invoke_successfully(self, xml, enable_tunneling): # pylint: disable=unused-argument
''' mock invoke_successfully returning xml data '''
self.xml_in = xml
print(xml.to_string())
if self.type == 'vserver':
xml = self.build_vserver_info()
elif self.type == 'net_port':