Issues (8)

actions/pythonactions/forloop_push_github_repos.py (1 issue)

1
from __future__ import print_function
2
from st2common.runners.base_action import Action
3
4
5
class PushGithubRepos(Action):
6
    def run(self, data_to_push):
7
        try:
8
            for each_item in data_to_push:
9
                # Push data to a service here
10
                print(str(each_item))
11
        except Exception as e:
12
            raise Exception("Process failed: {}".format(six.text_type(e)))
0 ignored issues
show
Comprehensibility Best Practice introduced by
Undefined variable 'six'
Loading history...
13
14
        return (True, "Data pushed successfully")
15