Skip to content

Commit 537578d

Browse files
authored
Merge branch 'master' into pylint-plugins-use-ast
2 parents 3a92e06 + 6df04da commit 537578d

File tree

14 files changed

+31
-27
lines changed

14 files changed

+31
-27
lines changed

OWNERS.md

+4-3
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ Have deep platform knowledge & experience and demonstrate technical leadership a
3333
Being part of Technical Steering Committee (TSC) [@StackStorm/maintainers](https://github.com/orgs/StackStorm/teams/maintainers) provide significant and reliable value to the project helping it grow and improve through development and maintenance. See [Maintainer Responsibilities](https://github.com/StackStorm/st2/blob/master/GOVERNANCE.md#maintainer-responsibilities) for more info.
3434
* Amanda McGuinness ([@amanda11](https://github.com/amanda11)) <<[email protected]>>
3535
- Ansible, Core, deb/rpm packages, CI/CD, Deployments, StackStorm Exchange, Documentation.
36+
* AJ Jonen ([@guzzijones](https://github.com/guzzijones)), _Cypherint_ <<[email protected]>>
37+
- Workflows, st2 Core Performance, Releases.
38+
* Jacob Floyd ([@cognifloyd](https://github.com/cognifloyd/)), _Copart_ <<[email protected]>>
39+
- StackStorm Exchange, Kubernetes, ChatOps, Core, Ansible, Discussions.
3640
* JP Bourget ([@punkrokk](https://github.com/punkrokk)) <<[email protected]>>
3741
- Systems, deb/rpm, Deployments, Community, StackStorm Exchange, SecOps, CircleCI.
3842
* Marcel Weinberg ([@winem](https://github.com/winem)), _CoreMedia_ <<[email protected]>>
@@ -47,12 +51,9 @@ Contributors are using and occasionally contributing back to the project, might
4751
They're not part of the TSC voting process, but appreciated for their contribution, involvement and may become Maintainers in the future depending on their effort and involvement. See [How to become a Maintainer?](https://github.com/StackStorm/st2/blob/master/GOVERNANCE.md#how-to-become-a-maintainer)
4852
[@StackStorm/contributors](https://github.com/orgs/StackStorm/teams/contributors) are invited to StackStorm Github organization and have permissions to help triage the Issues and review PRs.
4953
* Anand Patel ([@arms11](https://github.com/arms11)), _VMware_ - Docker, Kubernetes.
50-
* AJ Jonen ([@guzzijones](https://github.com/guzzijones)) - ST2 Web UI, Orquesta, Core.
5154
* Carlos ([@nzlosh](https://github.com/nzlosh)) - Chatops, Errbot, Community, Discussions, StackStorm Exchange.
5255
* Harsh Nanchahal ([@hnanchahal](https://github.com/hnanchahal)), _Starbucks_ - Core, Docker, Kubernetes.
5356
* Hiroyasu Ohyama ([@userlocalhost](https://github.com/userlocalhost)) - Orquesta, Workflows, st2 Japan Community. [Case Study](https://stackstorm.com/case-study-dmm/).
54-
* Jacob Floyd ([@cognifloyd](https://github.com/cognifloyd/)), _Copart_ - StackStorm Exchange, ChatOps, Core, Discussions.
55-
* Marcel Weinberg ([@winem](https://github.com/winem)) - Community, Docker, Core.
5657
* Sheshagiri Rao Mallipedhi ([@sheshagiri](https://github.com/sheshagiri)) - Docker, Core, StackStorm Exchange.
5758
* Shital Raut ([@shital-orchestral](https://github.com/shital-orchestral)), _Orchestral.ai_ - Web UI.
5859
* Tristan Struthers ([@trstruth](https://github.com/trstruth)) - Docker, K8s, Orquesta, Community.

st2client/st2client/commands/action.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030

3131
from six.moves import range
3232

33-
from st2client import models
33+
from st2client.models.action import Action, Execution
3434
from st2client.commands import resource
3535
from st2client.commands.resource import ResourceNotFoundError
3636
from st2client.commands.resource import ResourceViewCommand
@@ -198,7 +198,7 @@ def format_execution_status(instance):
198198
class ActionBranch(resource.ResourceBranch):
199199
def __init__(self, description, app, subparsers, parent_parser=None):
200200
super(ActionBranch, self).__init__(
201-
models.Action,
201+
Action,
202202
description,
203203
app,
204204
subparsers,
@@ -1082,7 +1082,7 @@ def _format_for_common_representation(self, task):
10821082
task_name_key = "context.orquesta.task_name"
10831083
# Use Execution as the object so that the formatter lookup does not change.
10841084
# AKA HACK!
1085-
return models.action.Execution(
1085+
return Execution(
10861086
**{
10871087
"id": task.id,
10881088
"status": task.status,
@@ -1240,7 +1240,7 @@ def run(self, args, **kwargs):
12401240
action=action, runner=runner, args=args
12411241
)
12421242

1243-
execution = models.Execution()
1243+
execution = Execution()
12441244
execution.action = action_ref
12451245
execution.parameters = action_parameters
12461246
execution.user = args.user
@@ -1267,7 +1267,7 @@ def run(self, args, **kwargs):
12671267
class ActionExecutionBranch(resource.ResourceBranch):
12681268
def __init__(self, description, app, subparsers, parent_parser=None):
12691269
super(ActionExecutionBranch, self).__init__(
1270-
models.Execution,
1270+
Execution,
12711271
description,
12721272
app,
12731273
subparsers,

st2client/st2client/commands/auth.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727

2828
from st2client.base import BaseCLIApp
2929
from st2client import config_parser
30-
from st2client import models
30+
from st2client.models.auth import ApiKey
3131
from st2client.commands import resource
3232
from st2client.commands.noop import NoopCommand
3333
from st2client.exceptions.operations import OperationFailureException
@@ -278,7 +278,7 @@ def run_and_print(self, args, **kwargs):
278278
class ApiKeyBranch(resource.ResourceBranch):
279279
def __init__(self, description, app, subparsers, parent_parser=None):
280280
super(ApiKeyBranch, self).__init__(
281-
models.ApiKey,
281+
ApiKey,
282282
description,
283283
app,
284284
subparsers,

st2client/st2client/commands/pack.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@
2121
import editor
2222
import yaml
2323

24-
from st2client.models import Config
25-
from st2client.models import Pack
26-
from st2client.models import Execution
24+
from st2client.models.config import Config
25+
from st2client.models.pack import Pack
26+
from st2client.models.action import Execution
2727
from st2client.commands import resource
2828
from st2client.commands.resource import add_auth_token_to_kwargs_from_cli
2929
from st2client.commands.action import ActionRunCommandMixin

st2client/st2client/commands/policy.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
import logging
1919

20-
from st2client import models
20+
from st2client.models.policy import Policy, PolicyType
2121
from st2client.commands import resource
2222

2323

@@ -27,7 +27,7 @@
2727
class PolicyTypeBranch(resource.ResourceBranch):
2828
def __init__(self, description, app, subparsers, parent_parser=None):
2929
super(PolicyTypeBranch, self).__init__(
30-
models.PolicyType,
30+
PolicyType,
3131
description,
3232
app,
3333
subparsers,
@@ -72,7 +72,7 @@ def get_resource(self, ref_or_id, **kwargs):
7272
class PolicyBranch(resource.ResourceBranch):
7373
def __init__(self, description, app, subparsers, parent_parser=None):
7474
super(PolicyBranch, self).__init__(
75-
models.Policy,
75+
Policy,
7676
description,
7777
app,
7878
subparsers,

st2client/st2client/commands/rule.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@
1515

1616
from __future__ import absolute_import
1717

18-
from st2client import models
18+
from st2client.models.reactor import Rule
1919
from st2client.commands import resource
2020
from st2client.formatters import table
2121

2222

2323
class RuleBranch(resource.ResourceBranch):
2424
def __init__(self, description, app, subparsers, parent_parser=None):
2525
super(RuleBranch, self).__init__(
26-
models.Rule,
26+
Rule,
2727
description,
2828
app,
2929
subparsers,

st2client/st2client/commands/rule_enforcement.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
from __future__ import absolute_import
1717

18-
from st2client import models
18+
from st2client.models.reactor import RuleEnforcement
1919
from st2client.commands import resource
2020
from st2client.formatters import table
2121
from st2client.utils.date import format_isodate_for_user_timezone
@@ -24,7 +24,7 @@
2424
class RuleEnforcementBranch(resource.ResourceBranch):
2525
def __init__(self, description, app, subparsers, parent_parser=None):
2626
super(RuleEnforcementBranch, self).__init__(
27-
models.RuleEnforcement,
27+
RuleEnforcement,
2828
description,
2929
app,
3030
subparsers,

st2client/st2client/commands/sensor.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
from __future__ import absolute_import
1717

18-
from st2client.models import Sensor
18+
from st2client.models.reactor import Sensor
1919
from st2client.commands import resource
2020

2121

st2client/st2client/commands/timer.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
from __future__ import absolute_import
1717

18-
from st2client.models import Timer
18+
from st2client.models.timer import Timer
1919
from st2client.commands import resource
2020

2121

st2client/st2client/commands/trace.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,10 @@
1515

1616
from __future__ import absolute_import
1717

18-
from st2client.models import Resource, Trace, TriggerInstance, Rule, Execution
18+
from st2client.models.core import Resource
19+
from st2client.models.trace import Trace
20+
from st2client.models.reactor import TriggerInstance, Rule
21+
from st2client.models.action import Execution
1922
from st2client.formatters import table
2023
from st2client.formatters import execution as execution_formatter
2124
from st2client.commands import resource

st2client/st2client/commands/trigger.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
from __future__ import absolute_import
1717

1818
from st2client.commands import resource
19-
from st2client.models import TriggerType
19+
from st2client.models.reactor import TriggerType
2020
from st2client.formatters import table
2121

2222

st2client/st2client/commands/triggerinstance.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
from st2client.commands import resource
1919
from st2client.formatters import table
20-
from st2client.models import TriggerInstance
20+
from st2client.models.reactor import TriggerInstance
2121
from st2client.utils.date import format_isodate_for_user_timezone
2222

2323

st2client/st2client/commands/webhook.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
from st2client.commands import resource
1919
from st2client.formatters import table
20-
from st2client.models import Webhook
20+
from st2client.models.webhook import Webhook
2121

2222

2323
class WebhookBranch(resource.ResourceBranch):

st2common/st2common/services/datastore.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
from oslo_config import cfg
2020

2121
from st2client.client import Client
22-
from st2client.models import KeyValuePair
22+
from st2client.models.keyvalue import KeyValuePair
2323
from st2common.util.api import get_full_public_api_url
2424
from st2common.util.date import get_datetime_utc_now
2525
from st2common.constants.keyvalue import DATASTORE_KEY_SEPARATOR, SYSTEM_SCOPE

0 commit comments

Comments
 (0)