def restart(): dist = platform.linux_distribution(full_distribution_name=False)[0].lower() if dist in debian_like: interfaces.restart() elif dist in rhel_like: networkscripts.restart()
def restart(): distribution = platform.linux_distribution()[0].lower() if distribution in debian_like: interfaces.restart() elif distribution in rhel_like: networkscripts.restart()