-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reindent files. #2
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello, thanks for the PR and sorry for such a long delay!
I very much understand the premise to standardize the indents. It is kinda crazy to work on this, when every file seems to be written in completely different style ;-].
You've used some kind of tool to achieve this, right? It seems that it got confused in a couple of places. Apart from these, it looks fine.
net0: network, | ||
description: desc, | ||
agent: get_rest_boolean(config.qemu_agent), | ||
pool: config.pool |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These do not seem correct?
cpuunits: config.lxc_cpuunits, | ||
swap: config.lxc_swap, | ||
tty: config.lxc_tty, | ||
pool: config.pool |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here.
.flatten | ||
.select { |ip| ip[:'ip-address-type'] == 'ipv4' } | ||
.map { |ip| ip[:'ip-address'] } | ||
.first |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd say that these should stay indented, so that we know they're part of the chain and not separate statements.
.first | ||
.select { |m| m[:id] =~ /^[a-z]*\/#{vm_id}$/ } | ||
.map { |m| { id: vm_id, type: /^(.*)\/(.*)$/.match(m[:id])[1], node: m[:node] } } | ||
.first |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here.
params[:protection] = get_rest_boolean(config.lxc_protection) | ||
params[:console] = get_rest_boolean(config.lxc_console) | ||
add_lxc_network_config(env, params) | ||
add_lxc_mount_points(env, config, params) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And here it seemed to have got confused by \
at :113. The indent should stay as it was. [The usage of \
is ugly, but I'm not the one to blame here ;-).]
This only reindents files to two spaces per block, no code has been changed.