You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Diagnostics:
gitlab:index:UserRunner (runnerResource):
error: cannot encode resource inputs to call ValidateResourceConfig: objectEncoder failed on property "project_id": Expected a Number
I'm using the latest releases:
$ poetry show --top-level)
pulumi 3.142.0 Pulumi's Python SDKpulumi-gitlab 8.6.1 A Pulumi package for creating and managing GitLab resources.
Could it be that the Project > id output should simply be an int and not a str ?
Happy to provide any further information if required.
$ pulumi up
Previewing update (test_gitlab_runner)
View in Browser (Ctrl+O): <redacted>
Type Name Plan Info
pulumi:pulumi:Stack test_gitlab_runner-test_gitlab_runner
└─ gitlab:index:UserRunner runnerResource 1 error
Diagnostics:
gitlab:index:UserRunner (runnerResource):
error: cannot encode resource inputs to call ValidateResourceConfig: objectEncoder failed on property "project_id": Expected a Number
Affected Resource(s)
gitlab.Project; possibly gitlab.UserRunner
Output of pulumi about
$ pulumi about
CLI
Version 3.142.0
Go Version go1.23.3
Go Compiler gc
Plugins
KIND NAME VERSION
resource gitlab 8.6.1
language python 3.142.0
Host
OS darwin
Version 14.7.1
Arch x86_64
This project is written in python: executable='<redacted>/Library/Caches/pypoetry/virtualenvs/non-package-mode-8gq2fEK2-py3.13/bin/python' version='3.13.0'
Current Stack: dd-ssc/test_gitlab_runner/test_gitlab_runner
TYPE URN
pulumi:pulumi:Stack urn:pulumi:test_gitlab_runner::test_gitlab_runner::pulumi:pulumi:Stack::test_gitlab_runner-test_gitlab_runner
pulumi:providers:gitlab urn:pulumi:test_gitlab_runner::test_gitlab_runner::pulumi:providers:gitlab::default_8_6_1
gitlab:index/project:Project urn:pulumi:test_gitlab_runner::test_gitlab_runner::gitlab:index/project:Project::projectResource
Found no pending operations associated with test_gitlab_runner
Backend
Name pulumi.com
URL https://app.pulumi.com/<redacted>
User <redacted>
Organizations <redacted>
Token type personal
Dependencies:
NAME VERSION
pip 24.2
pulumi_gitlab 8.6.1
Pulumi locates its logs in /var/folders/8t/d1l9tygj3ld643r89wpr3yl80000gn/T/ by default
Additional context
No response
Contributing
Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).
The text was updated successfully, but these errors were encountered:
Hi @dd-ssc thanks for reporting and sorry you've hit this. You have correctly identified the source of the problem - Project.id is a string and the input to UserRunner is an int. You can get around this problem by casting the types:
I'm afraid that changing the type there would be a breaking change for many users, so it'd be quite difficult to do. Can you please try the workaround of casting the type and let me know if that works?
Describe what happened
I am trying to create a
gitlab.Project
and agitlab.UserRunner
for it. My pulumi program:The above code fails with
I'm using the latest releases:
Could it be that the
Project
>id
output should simply be anint
and not astr
?Happy to provide any further information if required.
Sample program
Log output
Affected Resource(s)
gitlab.Project; possibly gitlab.UserRunner
Output of
pulumi about
Additional context
No response
Contributing
Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).
The text was updated successfully, but these errors were encountered: