File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
lib/check_mk/base/cee/plugins/bakery Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change 77# which is part of this source code package.
88
99import pprint
10+ import sys
1011from pathlib import Path
1112from typing import Any , Dict
1213
1819 register ,
1920)
2021
22+ from cmk .utils import password_store
23+
2124
2225def get_proxmox_bs_files (conf : Dict [str , Any ]) -> FileGenerator :
2326 if conf is not None :
@@ -26,6 +29,14 @@ def get_proxmox_bs_files(conf: Dict[str, Any]) -> FileGenerator:
2629 source = Path ("proxmox_bs" ),
2730 interval = 3600 ,
2831 )
32+ password = conf .get ('auth_pass' )
33+ if password [1 ] == "explicit_password" :
34+ secret = password [2 ][1 ]
35+ elif password [1 ] == "stored_password" :
36+ secret = password_store .lookup (password_store .password_store_path (), password [2 ][0 ])
37+ else :
38+ secret = ""
39+ sys .exit (1 )
2940 yield PluginConfig (
3041 base_os = OS .LINUX ,
3142 lines = [
You can’t perform that action at this time.
0 commit comments