Fix various pylint 1.5.4 warnings
[csit.git] / resources / tools / topology / update_topology.py
index a5711d0..2e26763 100755 (executable)
@@ -59,7 +59,7 @@ def ssh_no_error(ssh, cmd):
     :rtype: str
     """
     ret, stdo, stde = ssh.exec_command(cmd)
-    if 0 != ret:
+    if ret != 0:
         print 'Command execution failed: "{}"'.format(cmd)
         print 'stdout: {0}'.format(stdo)
         print 'stderr: {0}'.format(stde)
@@ -79,7 +79,6 @@ def update_mac_addresses_for_node(node):
 
     :param node: Node from topology.
     :type node: dict
-    :return: None
     """
     for port_name, port in node['interfaces'].items():
         if 'driver' not in port:
@@ -128,7 +127,6 @@ def update_nodes_mac_addresses(topology):
 
     :param topology: Topology information with nodes.
     :type topology: dict
-    :return: None
     """
     for node in topology['nodes'].values():
         update_mac_addresses_for_node(node)