#NEWLINE# def convert_sync_flags( syncFlag ) : #NEWLINE# #INDENT# found_flags = [ ] #NEWLINE# hexSyncFlags = [ ( 1 , 'Agent is going through initialization' ) , ( 2 , 'Agent is going through full cache re-synch' ) , ( 8 , 'Agent config list is out of date' ) , ( 16 , 'Agent Enforcement is out of date' ) , ( 32 , 'Kernel is not connected to the agent' ) , ( 64 , 'Agent events timestamps indicate that system clock is out of synch' ) , ( 128 , 'Agent has failed the health check' ) , ( 256 , 'This is clone that is tracking only new files' ) , ( 512 , 'This version of kernel is not supported by the agent (Linux only)' ) ] #NEWLINE# if ( syncFlag != 0 ) : #NEWLINE# #INDENT# for ( flag , trans ) in hexSyncFlags : #NEWLINE# #INDENT# if ( ( syncFlag & flag ) > 0 ) : #NEWLINE# #INDENT# found_flags . append ( ( flag , trans ) ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# found_flags = [ ( 0 , 'No sync issues' ) ] #NEWLINE# #UNINDENT# return found_flags