mirror of
https://pagure.io/fm-orchestrator.git
synced 2026-03-20 12:05:03 +08:00
Remove extract_modulemd since it's no longer used in the code
This commit is contained in:
@@ -28,7 +28,7 @@ import six
|
||||
from abc import ABCMeta, abstractmethod
|
||||
|
||||
import module_build_service.config as cfg
|
||||
from module_build_service import conf, log
|
||||
from module_build_service import conf
|
||||
|
||||
|
||||
class GenericResolver(six.with_metaclass(ABCMeta)):
|
||||
@@ -98,16 +98,6 @@ class GenericResolver(six.with_metaclass(ABCMeta)):
|
||||
|
||||
return False
|
||||
|
||||
@staticmethod
|
||||
def extract_modulemd(yaml, strict=False):
|
||||
log.warning(
|
||||
"GenericResolver.extract_modulemd is deprecated. Please call "
|
||||
"module_build_service.utils.load_mmd in new code."
|
||||
)
|
||||
from module_build_service.utils import load_mmd
|
||||
|
||||
return load_mmd(yaml)
|
||||
|
||||
@abstractmethod
|
||||
def get_module_count(self, **kwargs):
|
||||
raise NotImplementedError()
|
||||
|
||||
Reference in New Issue
Block a user