diff --git a/cassandra-executor/src/main/java/com/mesosphere/dcos/cassandra/executor/backup/StorageDriverFactory.java b/cassandra-executor/src/main/java/com/mesosphere/dcos/cassandra/executor/backup/StorageDriverFactory.java index 875eba93..4ea12d0a 100644 --- a/cassandra-executor/src/main/java/com/mesosphere/dcos/cassandra/executor/backup/StorageDriverFactory.java +++ b/cassandra-executor/src/main/java/com/mesosphere/dcos/cassandra/executor/backup/StorageDriverFactory.java @@ -18,7 +18,7 @@ public class StorageDriverFactory { public static BackupStorageDriver createStorageDriver(CassandraTask cassandraTask) { String externalLocation = null; switch (cassandraTask.getType()) { - case BACKUP_SNAPSHOT: + case BACKUP_UPLOAD: externalLocation = ((BackupUploadTask)cassandraTask).getBackupRestoreContext().getExternalLocation(); break; case BACKUP_SCHEMA: