Ejemplo n.º 1
0
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()
Ejemplo n.º 2
0
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()
Ejemplo n.º 3
0
def restart():
	distribution = platform.linux_distribution()[0].lower()
	if distribution in debian_like:
		interfaces.restart()
	elif distribution 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()