def set_nuage_facts_if_unset(facts):
 if ('common' in facts):
  if ('use_nuage' not in facts['common']):
   use_nuage = False
   facts['common']['use_nuage'] = use_nuage
 return facts

def set_nuage_facts_if_unset ( facts ) : if ( 'common' in facts ) : if ( 'use_nuage' not in facts [ 'common' ] ) : use_nuage = False facts [ 'common' ] [ 'use_nuage' ] = use_nuage return facts
set nuage facts if not already present in facts dict dict: the facts dict updated with the nuage facts if missing args: facts : existing facts returns: dict: the facts dict updated with the nuage facts if they were not already present .