mirror of
https://pagure.io/fm-orchestrator.git
synced 2026-05-02 14:39:59 +08:00
Resolve issues reported by bandit
This commit is contained in:
@@ -459,7 +459,9 @@ class MockModuleBuilder(GenericBuilder):
|
||||
config_opts = {}
|
||||
code = compile(f.read(), infile, "exec")
|
||||
# pylint: disable=exec-used
|
||||
exec(code)
|
||||
# exec is not being called with user input
|
||||
# only used for local builds, never on the server
|
||||
exec(code) # nosec
|
||||
|
||||
self.groups = config_opts["chroot_setup_cmd"].split(" ")[1:]
|
||||
self.yum_conf = config_opts["yum.conf"]
|
||||
|
||||
Reference in New Issue
Block a user