Inedo Community Forums Forums
    • Recent
    • Tags
    • Popular
    • Login

    Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.

    If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!

    Maps in vector and PowerShell

    Scheduled Pinned Locked Moved Support
    4 Posts 4 Posters 20 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A Offline
      Adam
      last edited by

      I'm trying to pass to the PowerShell script maps in vector. Unfortunately, instead of the expected array containig hashtable I get an array containing stings. Below I attach a sample configuration plan where you can see the problem.

      set @Groups = @(%(key1:val1,key2:val2),%(key1:val3,key2:val4));
      
      foreach %Group in @Groups
      {
          Log-Information %Group.key1;
          Log-Information %Group.key2;
      }
      
      Execute-PowerShell >>
      foreach ($Group in $Groups)
      {
          Write-host PowerShellLoop
          Write-host $Group
          Write-host "IsHastable: $($Group -is [Hashtable])"
      }
      >>;
      

      How to pass Groups variable so that PowerShell receives array containing hashtable?

      benB 1 Reply Last reply Reply Quote 0
      • benB Offline
        ben inedo-engineer @Adam
        last edited by

        Hello @Adam,

        What you are doing is correct; this is a bug in the Windows extension.

        I've filed inedox-windows#76 to fix this.

        1 Reply Last reply Reply Quote 0
        • A Offline
          Adam1
          last edited by

          Should this problem already be solved in version 1.7.0? I have this version of the extension installed but the problem still exists.

          1 Reply Last reply Reply Quote 0
          • rhessingerR Offline
            rhessinger inedo-engineer
            last edited by

            Hi @Adam,

            I have pushed an updated extension that includes this fix. The fix is included in the Windows extension 1.0.18+ and 1.7.1+. You should see an update when you check in Administration > Extensions. Please let me know if you have nay issues!

            Thanks,
            Rich

            Products Engineer, Inedo

            1 Reply Last reply Reply Quote 0

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            • 1 / 1
            • First post
              Last post
            Inedo Website Home • Support Home • Code of Conduct • Forums Guide • Documentation