-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fpt syntax check isn't giving me enough information to find error #30
Comments
What version of
Looking at the source I figured out that there was a missing @@ -219,6 +219,7 @@
end
end
end
+end
###########################################################################################################################################################
# Escalation With that change, it looks like your policy is accepted by |
After checking it looks like (v1.2.2), each time the container restarts it is downloading it from https://binaries.rightscale.com/rsbin/fpt/v1/fpt-linux-amd64.tgz
From your slashes are you using the windows version? |
I have tested it on both the Linux and Windows versions and get the same results that I mentioned on both. |
Looking at where the "An unexpected error occurred:" error comes from, it looks like it is probably getting something unexpected back from the Policies system rather than being something wrong with https://github.com/rightscale/policy_sdk/blob/master/cmd/fpt/check.go#L61 It might make sense to contact support about this issue. |
I was on a call last night before hoping off for the day with @rshade and he was telling me the same thing. I'm going to polish up a way of easily reproducing the issue, then contact support. |
When running the fpt command to check syntax of a policy template it is telling me there is a syntax error, but it doesn't say where. Also when uploading to the flexera goverance page, I don't get a syntax error and I can execute the template. Below is my output.
Attached is the Dockerfile that defines the dev enviroment I am working in and a sanitized version policy I am trying to check, for ease of replicating the error.
My end goal is to use FPT for a CI process tool and if possible a linter in vscode.
things to recreate my error.zip
The text was updated successfully, but these errors were encountered: