Bump upstreams to 2022.09 Chlorine
[serviceutils.git] / srm / shell / src / main / java / org / opendaylight / serviceutils / srm / shell / ReinstallCommand.java
index 42f46c43a34d6d82563feb91c4424bb17f754fbc..500b6daad5e64b2c8dfd141dad6e3a82e883a726 100644 (file)
@@ -32,7 +32,7 @@ public class ReinstallCommand extends OsgiCommandSupport {
     String name;
 
     private final OdlSrmRpcsService srmRpcService;
-    private final Class<? extends EntityTypeBase> entityType = EntityTypeService.class;
+    private final EntityTypeBase entityType = EntityTypeService.VALUE;
 
     public ReinstallCommand(OdlSrmRpcsService srmRpcService) {
         this.srmRpcService = srmRpcService;
@@ -66,7 +66,7 @@ public class ReinstallCommand extends OsgiCommandSupport {
     }
 
     private @Nullable ReinstallInput getInput() {
-        Class<? extends EntityNameBase> entityName = SrmCliUtils.getEntityName(entityType, name);
+        EntityNameBase entityName = SrmCliUtils.getEntityName(entityType, name);
         if (entityName == null) {
             session.getConsole().println(SrmCliUtils.getNameHelp(entityType));
             return null;