Skip to content

Instantly share code, notes, and snippets.

@othiym23
Created September 9, 2011 22:52
Show Gist options
  • Save othiym23/1207531 to your computer and use it in GitHub Desktop.
Save othiym23/1207531 to your computer and use it in GitHub Desktop.
Simple function to generate locker list based on available configuration.
get_locker_list () {
# Current flavor of generating the list of usable lockers:
# only try to operate on lockers that have LXC configuration information.
LOCKER_LIST=$(echo ${LXC_CONFIG}/locker_*.conf | sed "s|${LXC_CONFIG}/\(locker_[a-zA-Z0-9_]*\).conf|\1|g")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment