Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use the runner.yaml constant #5670

Merged
merged 3 commits into from
Jul 19, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions st2common/st2common/runners/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
from st2common import log as logging
from st2common.constants import action as action_constants
from st2common.constants import pack as pack_constants
from st2common.constants.runners import RUNNERS_NAMESPACE
from st2common.constants.runners import RUNNERS_NAMESPACE, MANIFEST_FILE_NAME
from st2common.content.utils import get_pack_directory
from st2common.content.utils import get_pack_base_path
from st2common.exceptions import actionrunner as exc
Expand Down Expand Up @@ -120,7 +120,7 @@ def get_metadata(package_name):
"""
import pkg_resources

file_path = pkg_resources.resource_filename(package_name, "runner.yaml")
file_path = pkg_resources.resource_filename(package_name, MANIFEST_FILE_NAME)

with open(file_path, "r") as fp:
content = fp.read()
Expand Down