mirror of https://github.com/apache/cloudstack.git
Removed sensitive info from UI/API when volume attach/detach fails (#4476)
* Removed sensitive info from UI when attach/detach fails * minor formatting change
This commit is contained in:
parent
735b6de296
commit
87e1fa9e02
|
|
@ -2248,15 +2248,16 @@ public class VmwareStorageProcessor implements StorageProcessor {
|
|||
String msg = "";
|
||||
|
||||
if (isAttach) {
|
||||
msg += "Failed to attach volume: " + e.getMessage();
|
||||
msg += "Failed to attach volume: ";
|
||||
}
|
||||
else {
|
||||
msg += "Failed to detach volume: " + e.getMessage();
|
||||
msg += "Failed to detach volume: ";
|
||||
}
|
||||
|
||||
s_logger.error(msg, e);
|
||||
s_logger.error(msg + e.getMessage(), e);
|
||||
|
||||
return new AttachAnswer(msg);
|
||||
// Sending empty error message - too many duplicate errors in UI
|
||||
return new AttachAnswer("");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue