Commit 2527691a authored by Guido Trotter's avatar Guido Trotter
Browse files

Move blank lines inside function messages

This patch changes whitespace only. It fixes all the functions in script/gnt-os
by putting a white line at the end of all the function descriptions and
removing it from just before the code.

Reviewed-By: iustinp
parent dd96409a
......@@ -38,8 +38,8 @@ def _DiagnoseOSValid(obj):
Returns:
bool: OS validity status
"""
"""
if isinstance(obj, objects.OS):
return True
elif isinstance(obj, errors.InvalidOS):
......@@ -56,8 +56,8 @@ def _DiagnoseOSName(obj):
Returns:
string: the name of the OS in question
"""
"""
if _DiagnoseOSValid(obj):
return obj.name
else:
......@@ -72,8 +72,8 @@ def _DiagnoseOSStatus(obj):
Returns:
string: a description of the OS status
"""
"""
if _DiagnoseOSValid(obj):
return "valid"
else:
......@@ -106,8 +106,8 @@ def _DiagnoseByOS(rlist):
map: a map with osnames as keys and as value another map, with nodes as
keys and diagnoseobjects as values
e.g. {"debian-etch": {"node1": <object>, "node2": <object>}}
"""
"""
all_os = {}
for node_name, nr in rlist.iteritems():
if not nr:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment