Skip to content

Commit 942ea87

Browse files
authored
Merge pull request #5670 from StackStorm/use-runner-constant
use the runner.yaml constant
2 parents ecc7d71 + bc7416d commit 942ea87

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

st2common/st2common/runners/base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
from st2common import log as logging
2929
from st2common.constants import action as action_constants
3030
from st2common.constants import pack as pack_constants
31-
from st2common.constants.runners import RUNNERS_NAMESPACE
31+
from st2common.constants.runners import RUNNERS_NAMESPACE, MANIFEST_FILE_NAME
3232
from st2common.content.utils import get_pack_directory
3333
from st2common.content.utils import get_pack_base_path
3434
from st2common.exceptions import actionrunner as exc
@@ -120,7 +120,7 @@ def get_metadata(package_name):
120120
"""
121121
import pkg_resources
122122

123-
file_path = pkg_resources.resource_filename(package_name, "runner.yaml")
123+
file_path = pkg_resources.resource_filename(package_name, MANIFEST_FILE_NAME)
124124

125125
with open(file_path, "r") as fp:
126126
content = fp.read()

0 commit comments

Comments
 (0)