Also check for boolean True, not just string 'True' when evaluating conditional dependencies.

When people know how actual yaml works they might have

    galaxy:
        watch_tools: true

as their config. Which signifies an actual Boolean value. This should be considered by the script as well.
This commit is contained in:
Ruben Vorderman
2021-04-20 08:45:28 +02:00
parent b71a4c5bd9
commit 8f324eceef
+1 -1
View File
@@ -180,7 +180,7 @@ class ConditionalDependencies(object):
return 'irods' in self.object_stores
def check_watchdog(self):
install_set = {'auto', 'True', 'true', 'polling'}
install_set = {'auto', 'True', 'true', 'polling', True}
return (self.config['watch_tools'] in install_set or
self.config['watch_tool_data_dir'] in install_set)