Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE
pacemaker.8750
pacemaker-tools-improve-crm_master-option-handl...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File pacemaker-tools-improve-crm_master-option-handling.patch of Package pacemaker.8750
commit 22ff50adc859ff25ca041b1411fa098474c79155 Author: Ken Gaillot <kgaillot@redhat.com> Date: Wed Jan 3 14:44:14 2018 -0600 Low: tools: improve crm_master option handling Implement all documented options, and follow crm_attribute for deprecations. Index: pacemaker-1.1.16+20170320.77ea74d/tools/crm_master =================================================================== --- pacemaker-1.1.16+20170320.77ea74d.orig/tools/crm_master +++ pacemaker-1.1.16+20170320.77ea74d/tools/crm_master @@ -35,9 +35,14 @@ exit_usage() { exit 1 } -TEMP=`getopt -o qDGQVN:U:v:i:l:r: --long version,help,resource:,node:,uname:,attr-value:,id:,update:,delete-attr,get-value,attr-id:,lifetime:,quiet \ - -n 'crm_master' -- "$@"` +SHORTOPTS_DEPRECATED="U:Q" +LONGOPTS_DEPRECATED="uname:,get-value,delete-attr,attr-value:,attr-id:" +SHORTOPTS="VqGv:DN:l:i:r:" +LONGOPTS="help,version,verbose,quiet,query,update:,delete,node:,lifetime:,id:,resource:" +TEMP=$(getopt -o ${SHORTOPTS}${SHORTOPTS_DEPRECATED} \ + --long ${LONGOPTS},${LONGOPTS_DEPRECATED} \ + -n crm_master -- "$@") if [ $? -ne 0 ]; then exit_usage fi @@ -46,10 +51,6 @@ eval set -- "$TEMP" # Quotes around $TEM while true ; do case "$1" in - -N|--node|-U|--uname) target="$2"; shift; shift;; - -v|--attr-value|--update|-i|--id|--attr-id|-l|--lifetime) options="$options $1 $2"; shift; shift;; - -Q|-q|--quiet|-D|--delete-attr|-G|--get-value|-V) options="$options $1"; shift;; - -r|--resource) OCF_RESOURCE_INSTANCE=$2; shift; shift;; --help) echo "$HELP_TEXT" exit 0 @@ -58,6 +59,34 @@ while true ; do crm_attribute --version exit 0 ;; + --verbose|-V|--quiet|-q|--query|-G|--delete|-D) + options="$options $1" + shift + ;; + -N|--node|-U|--uname) + target="$2" + shift + shift + ;; + --update|-v|--lifetime|-l|--id|-i) + options="$options $1 $2" + shift + shift + ;; + -r|--resource) + OCF_RESOURCE_INSTANCE=$2; + shift + shift + ;; + --get-value|--delete-attr|-Q) # deprecated + options="$options $1" + shift + ;; + --attr-value|--attr-id) # deprecated + options="$options $1 $2" + shift + shift + ;; --) shift break
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor