Skip to content

[BUG] path error appears while using https://github.com/ocp-power-automation/openshift-install-power in gitbash terminal for Windows10 #126

@ssinha20

Description

@ssinha20

Describe the bug
path error appears while using https://github.com/ocp-power-automation/openshift-install-power in gitbash terminal for Windows10

To Reproduce
Steps to reproduce the behavior:

  1. execute openshift-install-power in gitbash terminal for Windows10 in interactive mode.
  2. id_rsa.pub, /id_rsa, /pull-secret.txt are present in same path as install script

Expected behavior
Install should work.

Console Output

Paste the console messages that help explain your problem.
```[apply] Running terraform apply... please wait
Error: Invalid function argument
  on ocp.tf line 94, in module "install":
  94:     pull_secret                     = file(coalesce(var.pull_secret_file, "/dev/null"))
    |----------------
    | var.pull_secret_file is "<Full path of UserDir>/pull-secret.txt"
Invalid value for "path" parameter: no file exists at
<Full path of UserDir>\pull-secret.txt; this
function works only with files that are distributed as part of the
configuration source code, so if this file will be created by a resource in
this configuration you must instead obtain this result from an attribute of
that resource.

**Desktop (please complete the following information):**
  - Windows 10 terminal ,GitBash

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions