Skip to content

Commit

Permalink
Add LICENSE_RESTRICTION to the error whitelist
Browse files Browse the repository at this point in the history
Extend the list of errorcode handled by parse_precheck_failure().

Signed-off-by: Simon Rowe <simon.rowe@eu.citrix.com>
  • Loading branch information
Simon Rowe committed Aug 18, 2017
1 parent 1abac32 commit ec1007b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/extensions/pool_update.precheck
Expand Up @@ -99,7 +99,8 @@ def parse_control_package(session, yum_url):

def parse_precheck_failure(xmldoc):
errors = {
UPDATE_PRECHECK_FAILED_WRONG_SERVER_VERSION: (FOUND, REQUIRED)
UPDATE_PRECHECK_FAILED_WRONG_SERVER_VERSION: (FOUND, REQUIRED),
'LICENSE_RESTRICTION': ('feature', )
}

error = xmldoc.getElementsByTagName(ERROR)[0]
Expand Down

0 comments on commit ec1007b

Please sign in to comment.