instructions and validations tested
This commit is contained in:
@@ -1,3 +1,11 @@
|
||||
import Events.AllEvents.authentication as auths_events
|
||||
|
||||
|
||||
events_list = (auths_events,)
|
||||
|
||||
|
||||
def retrieve_cluster_by_name(cluster_name: str):
|
||||
for module in events_list:
|
||||
if hasattr(module, cluster_name):
|
||||
return getattr(module, cluster_name, None)
|
||||
return
|
||||
|
||||
@@ -1,3 +1,11 @@
|
||||
import Events.AllEvents.events as events_events
|
||||
|
||||
|
||||
events_list = (events_events,)
|
||||
|
||||
|
||||
def retrieve_cluster_by_name(cluster_name: str):
|
||||
for module in events_list:
|
||||
if hasattr(module, cluster_name):
|
||||
return getattr(module, cluster_name, None)
|
||||
return
|
||||
|
||||
@@ -32,6 +32,8 @@ COPY Events/AllEvents/validations /app/Events/AllEvents/validations
|
||||
COPY Events/base_request_model.py /app/Events/base_request_model.py
|
||||
COPY DockerApiServices/ValidationServiceApi/events_file.py /app/Events/AllEvents/events_file.py
|
||||
|
||||
COPY Events/AllEvents /app/Events/JustEvents
|
||||
COPY Events/AllEvents/just_events_file.py /app/Events/JustEvents/events_file.py
|
||||
|
||||
# Set Python path to include app directory
|
||||
ENV PYTHONPATH=/app \
|
||||
|
||||
@@ -1,3 +1,10 @@
|
||||
import Events.AllEvents.validations as validations_events
|
||||
|
||||
events_list = (validations_events,)
|
||||
|
||||
|
||||
def retrieve_cluster_by_name(cluster_name: str):
|
||||
for module in events_list:
|
||||
if hasattr(module, cluster_name):
|
||||
return getattr(module, cluster_name, None)
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user