11 lines
353 B

  1. # -*- mode: shell-script -*-
  2. get_odoo_uid() {
  3. uid_label="odoo"
  4. odoo_uid=$(cached_cmd_on_base_image odoo "id -u \"$uid_label\"") || {
  5. debug "Failed to query for '$uid_label' uid in ${DARKYELLOW}odoo${NORMAL} base image."
  6. return 1
  7. }
  8. info "openerp uid from ${DARKYELLOW}odoo${NORMAL} is '$odoo_uid'"
  9. echo "$odoo_uid"
  10. }