def set_manageiq_facts_if_unset(facts):
 if ('common' not in facts):
  if ('version_gte_3_1_or_1_1' not in facts['common']):
   raise OpenShiftFactsInternalError('Invalid invocation: The required facts are not set')
 if ('use_manageiq' not in facts['common']):
  facts['common']['use_manageiq'] = facts['common']['version_gte_3_1_or_1_1']
 return facts

def set_manageiq_facts_if_unset ( facts ) : if ( 'common' not in facts ) : if ( 'version_gte_3_1_or_1_1' not in facts [ 'common' ] ) : raise OpenShiftFactsInternalError ( 'Invalid invocation: The required facts are not set' ) if ( 'use_manageiq' not in facts [ 'common' ] ) : facts [ 'common' ] [ 'use_manageiq' ] = facts [ 'common' ] [ 'version_gte_3_1_or_1_1' ] return facts
set manageiq facts .