here is my little attempt at getting some speed info on this
$ cat foo.sh
#!/bin/sh
if [ $# -eq 0 ] || [ "$1" = "-h" -o "$1" = "--help" ]; then
cat <<EOF
Usage: ${0##*/} num [prog [arg [..]]]
run prog with arguments num times.
if no program or args, default is to run:
check_config datasource_list
$ time ${0} 10 check_config datasource_list
EOF
exit
fi
. /usr/lib/cloud-init/ds-identify
num=$1
nums=$(seq 1 "$num")
shift
[ $# -eq 0 ] && set -- check_config datasource_list
_RET=""; _RET_fname=""
echo "$num runs of: $*"
for i in $nums; do "$@"; done
ret=$?
echo "returned: $?"
echo "_RET=$_RET"
echo "_RET_fname=${_RET_fname}"
--
https://code.launchpad.net/~smoser/cloud-init/+git/cloud-init/+merge/321482
Your team cloud init development team is requested to review the proposed merge
of ~smoser/cloud-init:bug/1677710-ds-identify-fix-maas-detect into
cloud-init:master.
_______________________________________________
Mailing list: https://launchpad.net/~cloud-init-dev
Post to : [email protected]
Unsubscribe : https://launchpad.net/~cloud-init-dev
More help : https://help.launchpad.net/ListHelp