-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Keeping consistency with other error messages. #11649
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -62,7 +62,7 @@ public long getEntityOwnerId() { | |
|
||
@Override | ||
public String getEventDescription() { | ||
return "Update load balancer stickiness policy ID= " + id; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same as #11649 (comment) |
||
return "Update load balancer stickiness policy ID = " + id; | ||
} | ||
|
||
@Override | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -66,7 +66,7 @@ public long getEntityOwnerId() { | |
|
||
@Override | ||
public String getEventDescription() { | ||
return "Updating site-to-site VPN connection id= " + id; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same as #11649 (comment) |
||
return "Updating site-to-site VPN connection ID = " + id; | ||
} | ||
|
||
@Override | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -63,7 +63,7 @@ public long getEntityOwnerId() { | |
|
||
@Override | ||
public String getEventDescription() { | ||
return "Update site-to-site VPN gateway id= " + id; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same as #11649 (comment) |
||
return "Update site-to-site VPN gateway ID = " + id; | ||
} | ||
|
||
@Override | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -782,7 +782,7 @@ public List<Ternary<Integer, Integer, Integer>> countVmsBySize(long dcId, int li | |
result.add(new Ternary<Integer, Integer, Integer>(rs.getInt(1), rs.getInt(2), rs.getInt(3))); | ||
} | ||
} catch (Exception e) { | ||
logger.warn("Error counting vms by size for dcId= " + dcId, e); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same as #11649 (comment) |
||
logger.warn("Error counting vms by size for Data Center ID = " + dcId, e); | ||
} | ||
return result; | ||
} | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -886,7 +886,7 @@ public Long countByZoneAndStateAndHostTag(long dcId, State state, String hostTag | |
return rs.getLong(1); | ||
} | ||
} catch (Exception e) { | ||
logger.warn(String.format("Error counting vms by host tag for dcId= %s, hostTag= %s", dcId, hostTag), e); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same as #11649 (comment) |
||
logger.warn(String.format("Error counting vms by host tag for dcId = %s, hostTag = %s", dcId, hostTag), e); | ||
} | ||
return 0L; | ||
} | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2105,7 +2105,7 @@ private Pair<List<ProjectJoinVO>, Integer> listProjectsInternal(ListProjectsCmd | |
} | ||
|
||
if (domainId != null && !domainId.equals(caller.getDomainId())) { | ||
throw new PermissionDeniedException("Can't list domain id= " + domainId + " projects; unauthorized"); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same as #11649 (comment) |
||
throw new PermissionDeniedException("Can't list domain ID = " + domainId + " projects; unauthorized"); | ||
} | ||
|
||
if (StringUtils.isNotEmpty(username) && !username.equals(user.getUsername())) { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The
id
attribute here represents the resource's serial ID, right? We should always try to expose the UUID instead