fork(1) download
  1. audit_templates:
  2. audit_templates_per_admin: 666
  3. params:
  4. - goal:
  5. name: "workload_balancing"
  6. strategy:
  7. name: "workload_stabilization"
  8. - goal:
  9. name: "dummy"
  10. strategy:
  11. name: "dummy"
  12.  
  13. # ----context section from config ^^
  14.  
  15.  
  16. for i in range(self.config.get("audit_templates_per_admin", 1)):
  17. # this will use round robin approach
  18. cfg_size = len(self.config)
  19. goal = self.config["params"][i % cfg_size]["goal"]
  20. strategy = self.config["params"][i % cfg_size]["strategy"]
  21. extra = self.config["params"][i % cfg_size].get("extra")
  22.  
  23. goal_id = types.WatcherGoal.transform(clients=clients,
  24. resource_config=goal)
  25. strategy_id = types.WatcherStrategy.transform(
  26. clients=clients, resource_config=strategy)
  27.  
  28. audit_template = watcher_scenario._create_audit_template(
  29. goal_id, strategy_id, extra or {})
  30. self.context["audit_templates"].append(audit_template.uuid)
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib/python2.7/py_compile.py", line 117, in compile
    raise py_exc
py_compile.PyCompileError:   File "prog.py", line 1
    audit_templates:
                   ^
SyntaxError: invalid syntax

stdout
Standard output is empty