Ejemplo n.º 1
0
    def requires(self):
        deps = dict()
        if self.path != "":
            deps["ssm"] = GetSSMParamByPathTask(
                path=self.path,
                recursive=self.recursive,
                region=self.region,
                depends_on=self.depends_on,
                manifest_file_path=self.manifest_file_path,
                puppet_account_id=self.puppet_account_id,
                spoke_account_id=self.spoke_account_id,
                spoke_region=self.spoke_region,
            )

        if len(self.depends_on) > 0:
            deps["dependencies"] = dependency.generate_dependency_tasks(
                self.depends_on,
                self.manifest_file_path,
                self.puppet_account_id,
                self.spoke_account_id,
                self.ou_name if hasattr(self, "ou_name") else "",
                self.spoke_region,
                self.execution_mode,
            )
        return deps
Ejemplo n.º 2
0
 def requires(self):
     if len(self.depends_on) > 0:
         return dependency.generate_dependency_tasks(
             self.depends_on,
             self.manifest_file_path,
             self.puppet_account_id,
             self.spoke_account_id,
             self.spoke_region,
             self.execution_mode,
         )
     else:
         return []
Ejemplo n.º 3
0
 def requires(self):
     deps = dict()
     if len(self.depends_on) > 0:
         deps["dependencies"] = dependency.generate_dependency_tasks(
             self.depends_on,
             self.manifest_file_path,
             self.puppet_account_id,
             self.spoke_account_id,
             self.ou_name if hasattr(self, "ou_name") else "",
             self.spoke_region,
             self.execution_mode,
         )
     return deps