instances.update(row["domain"])
continue
- if args.single:
- logger.debug("Not fetching more instances - BREAK!")
- break
+ if args.single:
+ logger.debug("Not fetching more instances - EXIT!")
+ return 0
# Loop through some instances
database.cursor.execute(
echo "$0: DOMAIN='${DOMAIN}'"
if [ -n "$1" -a -z "${MODE}" ]
then
- ./fba.py update_nodeinfo --domain=${DOMAIN} "$1"
+ ./fba.py update_nodeinfo --domain="${DOMAIN}" "$1"
elif [ -n "$2" ]
then
- ./fba.py update_nodeinfo --domain=${DOMAIN} "$2"
+ ./fba.py update_nodeinfo --domain="${DOMAIN}" "$2"
else
- ./fba.py update_nodeinfo --domain=${DOMAIN}
+ ./fba.py update_nodeinfo --domain="${DOMAIN}"
fi
done
elif [ -n "${SOFTWARE_LIST}" ]
echo "$0: SOFTWARE='${SOFTWARE}'"
if [ -n "$2" ]
then
- ./fba.py update_nodeinfo --software=${SOFTWARE} "$2"
+ ./fba.py update_nodeinfo --software="${SOFTWARE}" "$2"
else
- ./fba.py update_nodeinfo --software=${SOFTWARE}
+ ./fba.py update_nodeinfo --software="${SOFTWARE}"
fi
done
fi