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() ...@@ -228,8 +228,6 @@ def oarcmd_script_header()
return <<EOF return <<EOF
set -eu set -eu
echo '================================================================================'
EOF EOF
end end
......
...@@ -266,10 +266,13 @@ if options[:output] || options[:exec] ...@@ -266,10 +266,13 @@ if options[:output] || options[:exec]
create_node_header = false create_node_header = false
cmd = [] cmd = []
cmd << oarcmd_script_header() cmd << oarcmd_script_header()
cmd << "echo '================================================================================'\n\n"
# Create properties keys # Create properties keys
cmd << oarcmd_create_properties(properties_keys[opt]) + "\n" unless properties_keys[opt].empty?
# cmd << "echo '================================================================================'\n\n" cmd << oarcmd_create_properties(properties_keys[opt]) + "\n"
cmd << "echo '================================================================================'\n\n"
end
# #
# Build and output commands # Build and output commands
...@@ -290,9 +293,11 @@ if options[:output] || options[:exec] ...@@ -290,9 +293,11 @@ if options[:output] || options[:exec]
end end
# Update properties # 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] ssh_cmd += cmd if options[:exec]
o.write(cmd.join('')) if options[:output] o.write(cmd.join('')) if options[:output]
cmd = [] 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