Skip to content

Commit

Permalink
kubeconfig hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
tsebastiani committed Nov 15, 2024
1 parent c8119e3 commit f76f5d1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions cmd/graph.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,14 @@ func NewGraphRunCommand(factory *provider_factory.ProviderFactory, scenarioOrche
if err != nil {
return err
}
if CheckFileExists(alertsProfile) == false {
if alertsProfile != "" && CheckFileExists(alertsProfile) == false {
return fmt.Errorf("file %s does not exist", alertsProfile)
}
metricsProfile, err := cmd.Flags().GetString("metrics-profile")
if err != nil {
return err
}
if CheckFileExists(metricsProfile) == false {
if metricsProfile != "" && CheckFileExists(metricsProfile) == false {
return fmt.Errorf("file %s does not exist", metricsProfile)
}

Expand Down
3 changes: 1 addition & 2 deletions pkg/scenario_orchestrator/docker/scenario_orchestrator.go
Original file line number Diff line number Diff line change
Expand Up @@ -158,9 +158,8 @@ func (c *ScenarioOrchestrator) Kill(containerId *string, ctx *context.Context) e
}

func (c *ScenarioOrchestrator) CleanContainers() (*int, error) {
return nil, nil
panic("not yet implemented on docker")
}

func (c *ScenarioOrchestrator) GetContainerRuntimeSocket(userId *int) (*string, error) {
return utils.GetSocketByContainerEnvironment(orchestrator_models.Docker, c.Config, userId)
}
Expand Down

0 comments on commit f76f5d1

Please sign in to comment.