Skip to content

Commit

Permalink
升级harbor参数
Browse files Browse the repository at this point in the history
  • Loading branch information
cgw committed Nov 27, 2022
1 parent e21b564 commit b68cd04
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ private void createProject(ImageRepo imageRepo) {
ObjectNode objectNode = JsonUtils.getObjectMapper().createObjectNode();
objectNode.put("project_name", "dhorse");
//1:公有类型
objectNode.put("public", 1);
objectNode.put("public", true);
httpPost.setEntity(new StringEntity(objectNode.toString(),"UTF-8"));
try (CloseableHttpResponse response = createHttpClient(imageRepo.getUrl()).execute(httpPost)){
if (response.getStatusLine().getStatusCode() != 201
Expand Down

0 comments on commit b68cd04

Please sign in to comment.