You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Use e.getMessage() instead of e.toString() in the delete-time benign-error
catches so the substring check is not coupled to JVM exception formatting.
- Generate the deletion-timestamp suffix in UTC via
DateTimeFormatter.withZone(ZoneOffset.UTC) so the rename is stable across
management servers in different timezones (and across DST changes).
- Sharpen the inline comment on snapshot deletion to spell out why the
rename is skipped: FlashArray volume/snapshot names must match
[A-Za-z0-9_-] and start/end with an alphanumeric, so the rename target
would have an embedded '.' which the array rejects.
Also drop the now-unused java.text.SimpleDateFormat import.
Signed-off-by: Eugenio Grosso <eugenio.grosso@gmail.com>
Copy file name to clipboardExpand all lines: plugins/storage/volume/flasharray/src/main/java/org/apache/cloudstack/storage/datastore/adapter/flasharray/FlashArrayAdapter.java
+23-10Lines changed: 23 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -23,7 +23,8 @@
23
23
importjava.security.KeyManagementException;
24
24
importjava.security.KeyStoreException;
25
25
importjava.security.NoSuchAlgorithmException;
26
-
importjava.text.SimpleDateFormat;
26
+
importjava.time.ZoneOffset;
27
+
importjava.time.format.DateTimeFormatter;
27
28
importjava.util.ArrayList;
28
29
importjava.util.HashMap;
29
30
importjava.util.Map;
@@ -88,6 +89,9 @@ public class FlashArrayAdapter implements ProviderAdapter {
0 commit comments