def targets_equal(keys, a, b):
 for key in keys:
  if ((key in b) and (a[key] != b[key])):
   return False
 return True

def targets_equal ( keys , a , b ) : for key in keys : if ( ( key in b ) and ( a [ key ] != b [ key ] ) ) : return False return True
method compare two mount targets by specified attributes .