Skip to content
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

Support Robot Dance Configuration #1

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

hawartens
Copy link

Add support to read a config file /etc/trd.conf instead of
hard-coding the volume labels into the source itself.

hawartens and others added 2 commits October 6, 2017 18:51
Add support to read a config file /etc/trd.conf instead of
hard-coding the volume labels into the source itself.
"confiured" -> "configured"
@@ -33,6 +34,13 @@ then
exit 1
fi

if [[ ! -f "${config_file}" ]]; then
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Two comments,

  1. This is going to be backwards incompatible as written now, since now you require the config_file which didn't used to be. Would it be reasonable to fall back to defaulting to the trd.conf file you have in this PR if there isn't a file at /etc/trd.conf?
  2. You might want to update the user warning to include the path that it's trying to find. Something like "Please ensure that the configuration file (${config_file}) exists."

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Ian. Good thoughts:

  1. Not sure how much we care about backwards incompatibility here as the volume labels were hard coded in. If we do care about it may do something like that, or allow the user to specify an alternate config on the command line.
  2. Definitely more useful for the user. Will do.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fair enough. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants