Adjust to new roc api

Change-Id: I67dc8d45ec6421d957af697b2f650c66b7c73a3d
diff --git a/ping.py b/ping.py
index 98e6be2..8f7f078 100644
--- a/ping.py
+++ b/ping.py
@@ -3,14 +3,13 @@
 SPDX-License-Identifier: LicenseRef-ONF-Member-1.01
 """
 
-import os
 import subprocess
-import logging as log
+# import logging as log
 
 
 def ping(host):
-    #log.debug("Pinging {}".format(host))
-    if host != None:
+    # log.debug("Pinging {}".format(host))
+    if host is not None:
         return subprocess.call(["ping", "-c", "2", "-W", "2", host],
                 stdout=subprocess.DEVNULL,
                 stderr=subprocess.STDOUT) == 0