Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 548a03ae authored by Pierre Neyron's avatar Pierre Neyron :bicyclist:
Browse files

[gen/oar-properties] fix warning when creating from scratch (empty site)

parent 97238ca2
No related branches found
No related tags found
No related merge requests found
Pipeline #91541 passed
...@@ -747,6 +747,10 @@ def generate_oar_properties(options) ...@@ -747,6 +747,10 @@ def generate_oar_properties(options)
cmd << oarcmd_create_helper_functions cmd << oarcmd_create_helper_functions
cmd << oarcmd_separator cmd << oarcmd_separator
# Make sure the host property is created (for a new site),
# because it is needed by the node_exist helper function
cmd << "property_exist host || oarproperty -a host --varchar\n\n"
# Create properties keys # Create properties keys
properties_keys[opt][site_uid].delete_if { |k, _v| ignore_default_keys.include?(k) } properties_keys[opt][site_uid].delete_if { |k, _v| ignore_default_keys.include?(k) }
unless properties_keys[opt][site_uid].empty? unless properties_keys[opt][site_uid].empty?
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment