Fixed wrong inheritance
This commit is contained in:
parent
f6e6a419fa
commit
840983f36e
|
@ -2,7 +2,6 @@ import os.path
|
||||||
from typing import Text, Optional
|
from typing import Text, Optional
|
||||||
|
|
||||||
import docker
|
import docker
|
||||||
import pydantic
|
|
||||||
import requests
|
import requests
|
||||||
|
|
||||||
from jeeves.core.objects import Result
|
from jeeves.core.objects import Result
|
||||||
|
@ -16,7 +15,7 @@ class DockerBuildAction(Action):
|
||||||
id = "contrib/docker/build"
|
id = "contrib/docker/build"
|
||||||
verbose_name = "Build docker image"
|
verbose_name = "Build docker image"
|
||||||
|
|
||||||
class Parameters(pydantic.BaseModel):
|
class Parameters(Action.Parameters):
|
||||||
"""
|
"""
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
@ -42,7 +41,7 @@ class DockerRunAction(Action):
|
||||||
id = "contrib/docker/run"
|
id = "contrib/docker/run"
|
||||||
verbose_name = "Execute docker container"
|
verbose_name = "Execute docker container"
|
||||||
|
|
||||||
class Parameters(pydantic.BaseModel):
|
class Parameters(Action.Parameters):
|
||||||
"""
|
"""
|
||||||
+----------------------+------+-----------+--------------------------------------------------------------+
|
+----------------------+------+-----------+--------------------------------------------------------------+
|
||||||
| Parameter name | Type | Mandatory | Description |
|
| Parameter name | Type | Mandatory | Description |
|
||||||
|
|
|
@ -3,8 +3,6 @@ import tempfile
|
||||||
import subprocess
|
import subprocess
|
||||||
from typing import Text
|
from typing import Text
|
||||||
|
|
||||||
import pydantic
|
|
||||||
|
|
||||||
from jeeves.core.objects import Result
|
from jeeves.core.objects import Result
|
||||||
from jeeves.core.actions.base import Action
|
from jeeves.core.actions.base import Action
|
||||||
|
|
||||||
|
@ -29,7 +27,7 @@ class ScriptAction(Action):
|
||||||
id = "contrib/script"
|
id = "contrib/script"
|
||||||
verbose_name = "Execute script"
|
verbose_name = "Execute script"
|
||||||
|
|
||||||
class Parameters(pydantic.BaseModel):
|
class Parameters(Action.Parameters):
|
||||||
"""
|
"""
|
||||||
+----------------+------+-----------+---------------------------+
|
+----------------+------+-----------+---------------------------+
|
||||||
| Parameter name | Type | Mandatory | Description |
|
| Parameter name | Type | Mandatory | Description |
|
||||||
|
|
Reference in New Issue