CLI - rhqapi: using local variable in ResourceType instead of global