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!

    Configuring DSC turns into nightmare due to failed conversion STRING to SINT64

    Scheduled Pinned Locked Moved Support
    otter
    4 Posts 3 Posters 10 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.
    • P Offline
      pcamelio_0469
      last edited by

      Hello

      I try to add the following DSC config to a server thru a configuration

      `# FSRM - Workfolder - Quotas

      {

         PSDsc FSRMDsc::FSRMQuota
         
        (
              OtterConfiguration_key : FSRMQuota-WorkFolders,
              Path                : ${WorkFolder-DossierBase},
              Description         : 'Quota 10GB Soft (monitoring)',
              Ensure              : 'Present',
              Size                : 1OGB,
              SoftLimit           : True
          );
      

      }

      Despite whatever I have been trying, I was not able to convert the value for Size - @(string[]) ,@('10GB'), ....
      I have an error about converting STRING to SINT64

      Does anyone can help me about the syntax ?

      Best Regards
      Philippe

      Product: Otter
      Version: 2.0.13

      1 Reply Last reply Reply Quote 0
      • T Offline
        thoven
        last edited by

        PowerShell converts 10GB into 10737418240 - OtterScript doesn't do this automatically, you'd have to do $PsEval(10GB) if you wanted the equivalent, but it's best to just put the number in directly I would think.

        1 Reply Last reply Reply Quote 0
        • P Offline
          pcamelio_0469
          last edited by

          Thank you Tod,

          Unfortunately, it is not working I still have the problem

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

            Hello Philippe,

            If the example code is identical to what you're running, the 10GB is misspelled as 1OGB (with the letter O instead of a zero).

            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