You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I use command "mm2_refresh_mirrorlist_cache",there is an ERROR about "AttributeError: 'Location' object has no attribute 'hosts'"
I found that command use "lib/mirrorlist.py".In the fun "location_cache",the code is like following
def location_cache(session):
cache = {}
for location in mirrormanager2.lib.get_locations(session):
# This does not work - location.hosts does not exist
cache[location.name] = [host.id for host in list(location.hosts)]
return cache
I found there is no "hosts" in the table "location"
Is this a bug?Or some mistake for me?
The text was updated successfully, but these errors were encountered:
When I use command "mm2_refresh_mirrorlist_cache",there is an ERROR about "AttributeError: 'Location' object has no attribute 'hosts'"
I found that command use "lib/mirrorlist.py".In the fun "location_cache",the code is like following
def location_cache(session):
cache = {}
for location in mirrormanager2.lib.get_locations(session):
# This does not work - location.hosts does not exist
cache[location.name] = [host.id for host in list(location.hosts)]
return cache
I found there is no "hosts" in the table "location"
Is this a bug?Or some mistake for me?
The text was updated successfully, but these errors were encountered: