Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions charon/cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
DEFAULT_BUCKET_TO_DOMAIN = {
"prod-maven-ga": "maven.repository.redhat.com",
"prod-maven-ea": "maven.repository.redhat.com",
"stage-maven-ga": "maven.strage.repository.redhat.com",
"stage-maven-ea": "maven.strage.repository.redhat.com",
"prod-npm": "npm.repository.redhat.com",
"stage-npm": "npm.stage.repository.redhat.com"
"stage-maven-ga": "maven.stage.repository.redhat.com",
"stage-maven-ea": "maven.stage.repository.redhat.com",
"prod-npm": "npm.registry.redhat.com",
"stage-npm": "npm.stage.registry.redhat.com"
}


Expand Down Expand Up @@ -117,7 +117,7 @@ def check_invalidation(self, distr_id: str, invalidation_id: str) -> dict:
invalidation = response.get('Invalidation', {})
return {
'Id': invalidation.get('Id', None),
'CreateTime': invalidation.get('CreateTime', None),
'CreateTime': str(invalidation.get('CreateTime', None)),
'Status': invalidation.get('Status', None)
}
except Exception as err:
Expand Down
2 changes: 1 addition & 1 deletion charon/cmd/cmd_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def cf_invalidate(
)
else:
invalidate_cf_paths(
cf_client, b, work_paths, b, batch_size=3000
cf_client, b, work_paths, batch_size=3000
)
except Exception:
print(traceback.format_exc())
Expand Down
4 changes: 4 additions & 0 deletions charon/schemas/charon.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@
"registry": {
"description": "npm registry",
"type": "string"
},
"domain": {
"description": "domain name for bucket",
"type": "string"
}
},
"required": [
Expand Down