Refactor upgradeVersionHashMap to use only Update service for update, do not hardcode
This commit is contained in:
parent
713915cfa1
commit
1a23673df8
@ -39,14 +39,7 @@ import java.util.Map;
|
|||||||
@TbCoreComponent
|
@TbCoreComponent
|
||||||
public class DefaultEdgeUpgradeInstructionsService implements EdgeUpgradeInstructionsService {
|
public class DefaultEdgeUpgradeInstructionsService implements EdgeUpgradeInstructionsService {
|
||||||
|
|
||||||
private static final Map<String, UpgradeInfo> upgradeVersionHashMap;
|
private static final Map<String, UpgradeInfo> upgradeVersionHashMap = new HashMap<>();
|
||||||
|
|
||||||
static {
|
|
||||||
upgradeVersionHashMap = new HashMap<>();
|
|
||||||
upgradeVersionHashMap.put("3.6.0", new UpgradeInfo(true, "3.6.1"));
|
|
||||||
upgradeVersionHashMap.put("3.6.1", new UpgradeInfo(true, "3.6.2"));
|
|
||||||
upgradeVersionHashMap.put("3.6.2", new UpgradeInfo(true, null));
|
|
||||||
}
|
|
||||||
|
|
||||||
private static final String EDGE_DIR = "edge";
|
private static final String EDGE_DIR = "edge";
|
||||||
private static final String INSTRUCTIONS_DIR = "instructions";
|
private static final String INSTRUCTIONS_DIR = "instructions";
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user