Maj terminée. Pour consulter la release notes associée voici le lien :
https://about.gitlab.com/releases/2021/07/07/critical-security-release-gitlab-14-0-4-released/

Commit 68bbcc7c authored by Jérémie Gaidamour's avatar Jérémie Gaidamour
Browse files

[dev] Improved output presentation

parent d646dab9
......@@ -228,8 +228,6 @@ def oarcmd_script_header()
return <<EOF
set -eu
echo '================================================================================'
EOF
end
......
......@@ -266,10 +266,13 @@ if options[:output] || options[:exec]
create_node_header = false
cmd = []
cmd << oarcmd_script_header()
cmd << "echo '================================================================================'\n\n"
# Create properties keys
cmd << oarcmd_create_properties(properties_keys[opt]) + "\n"
# cmd << "echo '================================================================================'\n\n"
unless properties_keys[opt].empty?
cmd << oarcmd_create_properties(properties_keys[opt]) + "\n"
cmd << "echo '================================================================================'\n\n"
end
#
# Build and output commands
......@@ -290,9 +293,11 @@ if options[:output] || options[:exec]
end
# Update properties
cmd << oarcmd_set_node_properties(node_uid + '.' + site_uid + '.grid5000.fr', node_properties) + "\n"
unless node_properties.empty?
cmd << oarcmd_set_node_properties(node_uid + '.' + site_uid + '.grid5000.fr', node_properties) + "\n"
cmd << "echo '================================================================================'\n\n"
end
cmd << "echo '================================================================================'\n\n"
ssh_cmd += cmd if options[:exec]
o.write(cmd.join('')) if options[:output]
cmd = []
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment