Skip to content

Commit

Permalink
fix: Use absolute paths when scaffolding from a relative path
Browse files Browse the repository at this point in the history
  • Loading branch information
stmh committed Mar 9, 2022
1 parent 44bdb18 commit 26fdfcb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Method/K8sMethod.php
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,9 @@ protected function scaffold(HostConfig $host_config, TaskContextInterface $conte

$this->ensureShell($host_config, $context);
$scaffold_url = $kube_config['scaffolder']['baseUrl'] . '/' . $kube_config['scaffolder']['template'];
if ($scaffold_url[0] == '.') {
$scaffold_url = realpath($scaffold_url);
}
$scaffolder = new Scaffolder($configuration);

$options = new Options();
Expand Down

0 comments on commit 26fdfcb

Please sign in to comment.