Example #1
0
 def wrapper(*args, **kwargs):
     result = func(*args, **kwargs)
     if settings.STORE_ASTUTE_YAML:
         environment = get_current_env(args)
         if environment:
             store_astute_yaml(environment)
         else:
             logger.warning("Can't download astute.yaml: " "Unexpected class is decorated.")
     return result
Example #2
0
 def wrapper(*args, **kwargs):
     result = func(*args, **kwargs)
     if settings.STORE_ASTUTE_YAML:
         store_astute_yaml(args[0].env)
     return result