Skip to content

Support Robot Dance Configuration#1

Open
hawartens wants to merge 2 commits intollnl:masterfrom
hawartens:feature/trd_config
Open

Support Robot Dance Configuration#1
hawartens wants to merge 2 commits intollnl:masterfrom
hawartens:feature/trd_config

Conversation

@hawartens
Copy link
Copy Markdown

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"
Comment thread trd_cron.bash
exit 1
fi

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

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
Copy Markdown
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
Copy Markdown

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