(self, args, **kwargs)
| 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) |
no test coverage detected