Skip to content

Commit c648040

Browse files
committed
Session vs AbstractSession
1 parent 292724b commit c648040

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/api/BundleDeploy/BundleDeployer.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111

1212
"use strict";
1313

14-
import { IHandlerParameters, Logger, ImperativeError, Session, ITaskWithStatus, TaskStage , TaskProgress} from "@brightside/imperative";
14+
import { IHandlerParameters, Logger, ImperativeError, AbstractSession, ITaskWithStatus,
15+
TaskStage , TaskProgress} from "@brightside/imperative";
1516
import { ZosmfSession, SubmitJobs, List } from "@brightside/core";
1617
import { ParmValidator } from "./ParmValidator";
1718

@@ -166,7 +167,7 @@ export class BundleDeployer {
166167
}
167168

168169

169-
private async createZosMFSession(): Promise<Session> {
170+
private async createZosMFSession(): Promise<AbstractSession> {
170171
// Create a zosMF session
171172
const zosmfProfile = this.params.profiles.get("zosmf");
172173

@@ -176,7 +177,7 @@ export class BundleDeployer {
176177
return ZosmfSession.createBasicZosmfSession(zosmfProfile);
177178
}
178179

179-
private async checkHLQDatasets(session: Session) {
180+
private async checkHLQDatasets(session: AbstractSession) {
180181
// Check that the CICS dataset value looks valid and can be viewed
181182
// Access errors will trigger an Exception
182183
const cicspds = this.params.arguments.cicshlq + ".SDFHLOAD";
@@ -218,7 +219,7 @@ export class BundleDeployer {
218219
}
219220
}
220221

221-
private async submitJCL(jcl: string, session: Session): Promise<string> {
222+
private async submitJCL(jcl: string, session: AbstractSession): Promise<string> {
222223
let spoolOutput: any;
223224
const status: ITaskWithStatus = { percentComplete: TaskProgress.TEN_PERCENT,
224225
statusMessage: "Submitting DFHDPLOY JCL",

0 commit comments

Comments
 (0)