Skip to content

Commit 93af6df

Browse files
committed
add basic auth support (for new pyzm version)
1 parent 6d7cc26 commit 93af6df

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

mlapi.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,8 @@ def ret_val(exception):
364364
'portalurl':g.config['portal'],
365365
'user':g.config['user'] ,
366366
'password': g.config['password'],
367+
'basic_auth_user': g.config['basic_auth_user'],
368+
'basic_auth_password': g.config['basic_auth_password'],
367369
'disable_ssl_cert_check':False if g.config['allow_self_signed']=='no' else True
368370
}
369371

modules/common_params.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,16 @@
4444
'default': None,
4545
'type': 'string'
4646
},
47+
'basic_auth_user':{
48+
'section': 'general',
49+
'default': None,
50+
'type': 'string'
51+
},
52+
'basic_auth_password':{
53+
'section': 'general',
54+
'default': None,
55+
'type': 'string'
56+
},
4757
'import_zm_zones':{
4858
'section': 'general',
4959
'default': 'no',

0 commit comments

Comments
 (0)