Skip to content

Commit ed8ee29

Browse files
committed
Add get_regular_container func
1 parent ffc583e commit ed8ee29

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

unilabos/registry/resources/organic/container.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ container:
22
category:
33
- container
44
class:
5-
module: unilabos.resources.container:RegularContainer
5+
module: unilabos.resources.container:get_regular_container
66
type: pylabrobot
77
description: regular organic container
88
handles:

unilabos/resources/container.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@ def __init__(self, *args, **kwargs):
2222

2323
def load_state(self, state: Dict[str, Any]):
2424
self.state = state
25+
26+
27+
def get_regular_container(name="container"):
28+
return RegularContainer(name=name)
29+
2530
#
2631
# class RegularContainer(object):
2732
# # 第一个参数必须是id传入

0 commit comments

Comments
 (0)