Skip to content

Commit

Permalink
#392 pass basic auth to pyzm
Browse files Browse the repository at this point in the history
  • Loading branch information
pliablepixels committed Apr 17, 2021
1 parent 134038a commit 7991dd3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions hook/zm_detect.py
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,8 @@ def main_handler():
'portalurl': g.config['portal'],
'user': g.config['user'],
'password': g.config['password'] ,
'basic_auth_user': g.config['basic_user'],
'basic_auth_password': g.config['basic_password'],
'logger': g.logger, # use none if you don't want to log to ZM,
'disable_ssl_cert_check': False if g.config['allow_self_signed']=='no' else True
}
Expand Down
4 changes: 2 additions & 2 deletions hook/zmes_hook_helpers/common_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,13 +87,13 @@
},
'basic_user':{
'section': 'general',
'default': '',
'default': None,
'type': 'string'
},

'basic_password':{
'section': 'general',
'default': '',
'default': None,
'type': 'string'
},
'image_path':{
Expand Down

0 comments on commit 7991dd3

Please sign in to comment.