def get_formatted_wwn(wwn_str):
 if (len(wwn_str) != 16):
  return wwn_str.lower()
 else:
  return ':'.join([wwn_str[i:(i + 2)] for i in range(0, len(wwn_str), 2)]).lower()

def get_formatted_wwn ( wwn_str ) : if ( len ( wwn_str ) != 16 ) : return wwn_str . lower ( ) else : return ':' . join ( [ wwn_str [ i : ( i + 2 ) ] for i in range ( 0 , len ( wwn_str ) , 2 ) ] ) . lower ( )
utility api that formats wwn to insert : .