MCPcopy Index your code
hub / github.com/StackStorm/st2 / run

Method run

st2client/st2client/commands/rbac.py:181–197  ·  view source on GitHub ↗
(self, args, **kwargs)

Source from the content-addressed store, hash-verified

179
180 @resource.add_auth_token_to_kwargs_from_cli
181 def run(self, args, **kwargs):
182 # Filtering options
183 if args.role:
184 kwargs["role"] = args.role
185 if args.user:
186 kwargs["user"] = args.user
187 if args.source:
188 kwargs["source"] = args.source
189 if args.remote:
190 kwargs["remote"] = args.remote
191
192 if args.role or args.user or args.remote or args.source:
193 result = self.manager.query(**kwargs)
194 else:
195 result = self.manager.get_all(**kwargs)
196
197 return result
198
199 def run_and_print(self, args, **kwargs):
200 instances = self.run(args, **kwargs)

Callers 1

run_and_printMethod · 0.95

Calls 2

queryMethod · 0.45
get_allMethod · 0.45

Tested by

no test coverage detected