Skip to content

Commit 0064310

Browse files
committed
Initial support for ICR's 'token_to_use' feature when creating connection
1 parent 7dc1288 commit 0064310

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

f5/bigip/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ def parse_arguments(self, *args, **kwargs):
6464
port=kwargs.pop('port', 443),
6565
icontrol_version=kwargs.pop('icontrol_version', ''),
6666
token=kwargs.pop('token', False),
67+
token_to_use=kwargs.pop('token_to_use', None),
6768
verify=kwargs.pop('verify', False),
6869
auth_provider=kwargs.pop('auth_provider', None),
6970
debug=kwargs.pop('debug', False)
@@ -82,7 +83,8 @@ def _get_icr_session(self, *args, **kwargs):
8283
username=kwargs['username'],
8384
password=kwargs['password'],
8485
timeout=kwargs['timeout'],
85-
verify=kwargs['verify']
86+
verify=kwargs['verify'],
87+
token_to_use=kwargs['token_to_use']
8688
)
8789
if kwargs['auth_provider']:
8890
params['auth_provider'] = kwargs['auth_provider']

0 commit comments

Comments
 (0)