File tree Expand file tree Collapse file tree
lib/python3/cmk/base/cee/plugins/bakery Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22# -*- encoding: utf-8; py-indent-offset: 4 -*-
33
44from pathlib import Path
5- from typing import Any , Dict
5+ from typing import Any
66
7- from .bakery_api .v1 import FileGenerator , OS , Plugin , register
7+ from cmk . base . cee . plugins . bakery .bakery_api .v1 import FileGenerator , OS , Plugin , register
88
99
10- def get_yum_files (conf : Dict [str , Any ]) -> FileGenerator :
11- yield Plugin (base_os = OS .LINUX ,
12- source = Path ("yum" ),
13- interval = conf .get ("interval" ))
10+ def get_yum_files (conf : Any ) -> FileGenerator :
11+ # if conf.get('deploy', 'nointerval') == 'nointerval':
12+ # return
13+ if conf .get ('interval' ) is not None :
14+ interval = conf .get ('interval' )
15+ elif conf .get ('deploy' , 'interval' )[1 ] is not None :
16+ interval = conf .get ('deploy' , 'interval' )[1 ]
1417
18+ yield Plugin (base_os = OS .LINUX ,
19+ source = Path ('yum' ),
20+ interval = int (interval )
21+ )
1522
1623register .bakery_plugin (
17- name = " yum" ,
24+ name = ' yum' ,
1825 files_function = get_yum_files ,
1926)
You can’t perform that action at this time.
0 commit comments