lib/topological_inventory/orchestrator/config_map.rb
# Generates UID in loop until it exists in OpenShift
Generates UID in loop until it exists in OpenShift
Generates UID in loop until it exists in OpenShift
def generate_uniq_uid
        generated = nil
        loop do
          generated = SecureRandom.hex(4)
          existing_object = load_openshift_object(generated)
          break if existing_object.nil?
        end
        generated
      end
def generate_uniq_uid generated = nil loop do generated = SecureRandom . hex ( 4 ) existing_object = load_openshift_object ( generated ) break if existing_object . nil? end generated end
Generates UID in loop until it exists in OpenShift
Generates UID in loop until it exists in OpenShift