Minor fixes

    - remove debug logs
    - use hasattr to avoid exception

Change-Id: I326f692f1c541e9b53ddae3582846c9bd0fa446a
diff --git a/TestON/drivers/common/clidriver.py b/TestON/drivers/common/clidriver.py
index ce32128..7d306b9 100644
--- a/TestON/drivers/common/clidriver.py
+++ b/TestON/drivers/common/clidriver.py
@@ -91,7 +91,6 @@
                                       'Permission denied, please try again.',
                                       self.prompt ],
                                     120 )
-            self.log( str( self.handle.before ) + str( self.handle.after ) )
             if i == 0:  # Accept key, then expect either a password prompt or access
                 main.log.info( self.name + ": ssh key confirmation received, send yes" )
                 self.handle.sendline( 'yes' )
diff --git a/TestON/tests/USECASE/SegmentRouting/SRStaging/dependencies/SRStagingTest.py b/TestON/tests/USECASE/SegmentRouting/SRStaging/dependencies/SRStagingTest.py
index 5da933b..f0f30a5 100644
--- a/TestON/tests/USECASE/SegmentRouting/SRStaging/dependencies/SRStagingTest.py
+++ b/TestON/tests/USECASE/SegmentRouting/SRStaging/dependencies/SRStagingTest.py
@@ -1353,7 +1353,7 @@
 
     def cleanup( self, main, headerOrder=None ):
         try:
-            if getattr( main, "trafficComponents" ):
+            if hasattr( main, "trafficComponents" ):
                 for component in main.trafficComponents:
                     main.Network.removeComponent( component.name )
             main.trafficComponents = []