def auditServersMarketing(environment, servers, propertiesDictionary, bApplyRequiredChanges) : # merge global properties into dict - deliberately overwriting local with global dict all values strThreadPoolId = "auditServersMarketing" for servername in servers: # Create new threads scatterThread(strThreadPoolId, auditServersMarketingThread, args=(environment, servername, propertiesDictionary, bApplyRequiredChanges)) gatherThreads(strThreadPoolId) for servername in servers: auditReport(environment, servername)
def auditServers(environment, servers, propertiesDict, bApplyRequiredChanges): # merge global propertiesDict into dict - deliberately overwriting local with global dict all values runtimeProperties = dict() runtimeProperties.update(globalProperties.dictionary) runtimeProperties.update(propertiesDict) for servername in servers: ############################################################## # Base server audit... ############################################################## scatterThread("auditServerExtended", auditServerExtended, args=(environment, servername, propertiesDict, bApplyRequiredChanges)) ############################################################## # Base server audit... ############################################################## # auditServersBaseAudit(environment, servers, propertiesDict, bApplyRequiredChanges) gatherThreads("auditServerExtended") for servername in servers: auditReport(environment, servername)