Skip to content

Commit 26f20d7

Browse files
CSTACKEX-200: state is not a valid field for CG
1 parent 5d9639e commit 26f20d7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

plugins/storage/volume/ontap/src/main/java/org/apache/cloudstack/storage/vmsnapshot/OntapVMSnapshotStrategy.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -981,15 +981,15 @@ String lookupConsistencyGroupSnapshotUuid(SnapshotFeignClient client, String aut
981981
String cgUuid, String snapshotName) {
982982
Map<String, Object> query = new HashMap<>();
983983
query.put("name", snapshotName);
984-
query.put("fields", "uuid,name,state");
984+
query.put("fields", "uuid,name");
985985
OntapResponse<Map<String, Object>> response = client.getConsistencyGroupSnapshots(authHeader, cgUuid, query);
986986
String snapshotUuid = findConsistencyGroupSnapshotUuidInRecords(response, snapshotName);
987987
if (snapshotUuid != null) {
988988
return snapshotUuid;
989989
}
990990

991991
Map<String, Object> listAllQuery = new HashMap<>();
992-
listAllQuery.put("fields", "uuid,name,state");
992+
listAllQuery.put("fields", "uuid,name");
993993
OntapResponse<Map<String, Object>> allSnapshots = client.getConsistencyGroupSnapshots(authHeader, cgUuid, listAllQuery);
994994
return findConsistencyGroupSnapshotUuidInRecords(allSnapshots, snapshotName);
995995
}

0 commit comments

Comments
 (0)