Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
lxRbckl committed Sep 2, 2024
1 parent df5f54d commit faf0c0f
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/managers/dataManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,16 +47,14 @@ export default class dataManager {
}


private _convertService(
private _imageToService(

service: string,
image: string,
aliases: ServiceAliases

): string {

let convert: string = service;
convert = convert.split('/')[1].split(':')[0];

const service: string = image.split('/')[1].split(':')[0];
switch (Object.keys(aliases).includes(service)) {

case (false): return service;
Expand Down Expand Up @@ -161,7 +159,7 @@ export default class dataManager {

// V2
let service: string = t.Spec.ContainerSpec.Image;
swarm[t.NodeID]['services'].push(this._convertService(
swarm[t.NodeID]['services'].push(this._imageToService(

service,
serviceAliases
Expand Down

0 comments on commit faf0c0f

Please sign in to comment.