reroute system provider query

This commit is contained in:
Houkime 2022-10-31 10:52:38 +00:00
parent 589093b853
commit a723311b36

View file

@ -133,7 +133,11 @@ class SystemProviderInfo:
def get_system_provider_info() -> SystemProviderInfo: def get_system_provider_info() -> SystemProviderInfo:
"""Get system provider info""" """Get system provider info"""
return SystemProviderInfo(provider=ServerProvider.HETZNER, id="UNKNOWN") with ReadUserData() as user_data:
return SystemProviderInfo(
provider=user_data["server"]["provider"],
id="UNKNOWN"
)
@strawberry.type @strawberry.type