plugin recipe: improve recipe to correctly generate promise which has complex parameters
Use json.dumps/.loads to generate promise plugin code. This is safe as it will correctly escape sring and prevent code injection from untrustable parameters. Add 'module' parameter to simplify parameters used to generate the script instead of passing full import code. When module is set, the generated script will import `module` from slapos.promise.plugin.
Showing
Please register or sign in to comment