Skip to content
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

vrealize:push fails to populate configuration element of type array #460

Open
tanguyr opened this issue Oct 16, 2024 · 2 comments
Open

vrealize:push fails to populate configuration element of type array #460

tanguyr opened this issue Oct 16, 2024 · 2 comments
Assignees
Labels
area/vrotsc Relates to `vrotsc` module kind/bug Something isn't working lang/typescript Related to typescript code os/windows priority/medium triage/accepted The issue was accepted and will be done version/minor Introduces a non-breaking feature or change

Comments

@tanguyr
Copy link

tanguyr commented Oct 16, 2024

Description

We have a config element that holds an array of strings. When we execute a vrealize:push with the flag -Dvro.packageImportConfigurationAttributeValues=true, the config element is created, but the attribute values are not populated. Other config elements in the same project have their values correctly populated

Steps to Reproduce

  1. This is my config element:
import { Configuration } from "vrotsc-annotations";

@Configuration({
    name: "HostnameValidation",
    path: "COMPANYNAME",
    attributes: {
        domainsList: {
            type: "Array/string",
            value: ["example.corp", "example.com"]
        }
    }
})
export class HostnameValidation { }
  1. I execute the command
    mvn clean package vrealize:push -P<profile> -Dlicense.skip -Dlicense.skipAddThirdParty=true -DskipInstallNodeDeps=true -Dvro.packageImportConfigurationAttributeValues=true -Dvro.packageImportConfigSecureStringAttributeValues=true

  2. In Orchestrator/Configurations:

  • I do see a configration "HostnameValidation"
  • It does contain a variable "domainsList"
  • That variable is empty

Expected behavior:
I expect the domainsList variable to hold my two domains

Actual behavior:
domainsList variable is empty

Reproduces how often:
100%

Component/s:

Affects Build/s:
2.43.0

Environment

Client

  • Build Tools for VMware Aria Version: 2.43
  • Visual Studio Code Version: 1.85.1
  • OS Version: Win 10

Server

  • vRealize Automation Version: VMware Aria Automation 8.13.1.32340 (22360938)
  • vRealize Orchestrator Version: ditto (embedded vRO)
@VenelinBakalov VenelinBakalov added lang/typescript Related to typescript code area/vrotsc Relates to `vrotsc` module triage/needed Needs to be discussed by project maintainers priority/medium kind/bug Something isn't working version/minor Introduces a non-breaking feature or change labels Oct 17, 2024
@Michaelpalacce Michaelpalacce added os/windows triage/accepted The issue was accepted and will be done and removed triage/needed Needs to be discussed by project maintainers labels Oct 17, 2024
@akantchev
Copy link
Contributor

akantchev commented Oct 17, 2024

I was able to reproduce it as well with pushing within a windows environment.

Issue_460_Push_Result

@unbreakabl3
Copy link
Contributor

Working for me.

image

import { Configuration } from "vrotsc-annotations";

@Configuration({
  name: "power_settings",
  path: "my_path",
  attributes: {
    powerMin: {
      type: "number",
      value: "1",
      description: "Minimum power"
    },
    powerMax: {
      type: "number",
      value: "2",
      description: "Maximum power"
    },
    domainName: {
      type: "Array/string",
      value: ["domain.local", "test.test"],
      description: "Domain name"
    }
  }
})
export class MyClass {}

@vasyl-vs vasyl-vs self-assigned this Dec 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/vrotsc Relates to `vrotsc` module kind/bug Something isn't working lang/typescript Related to typescript code os/windows priority/medium triage/accepted The issue was accepted and will be done version/minor Introduces a non-breaking feature or change
Projects
None yet
Development

No branches or pull requests

6 participants