<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Create Option list for Python Task in HPE Morpheus Enterprise Software</title>
    <link>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/create-option-list-for-python-task/m-p/7247986#M1160</link>
    <description>&lt;P&gt;I want to create a options list for python task which should be “List” based options list ,&lt;BR /&gt;
Using Get method&lt;BR /&gt;
1.i need to get the lists and pass to an enduser when he submittes workflow or catalog&lt;/P&gt;
&lt;P&gt;2.I dont see any option to pass these option list to  Python task&lt;/P&gt;
&lt;P&gt;I get this error when i pass option list in workflow&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;&lt;DIV class="lightbox-wrapper"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://community.hpe.com/t5/image/serverpage/image-id/149855iD31CF54C723A7BFE/image-size/large?v=v2&amp;amp;px=2000" role="button" title="42b29cbc696e3335a6a17c618ca7abd56232cc62.png" alt="42b29cbc696e3335a6a17c618ca7abd56232cc62.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV class="lightbox-wrapper"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://community.hpe.com/t5/image/serverpage/image-id/150569i3751D145A846AEC1/image-size/large?v=v2&amp;amp;px=2000" role="button" title="6501be491d7f4481c9562cc666fb1072b6e76301.png" alt="6501be491d7f4481c9562cc666fb1072b6e76301.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 25 Apr 2023 05:42:05 GMT</pubDate>
    <dc:creator />
    <dc:date>2023-04-25T05:42:05Z</dc:date>
    <item>
      <title>Create Option list for Python Task</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/create-option-list-for-python-task/m-p/7247986#M1160</link>
      <description>&lt;P&gt;I want to create a options list for python task which should be “List” based options list ,&lt;BR /&gt;
Using Get method&lt;BR /&gt;
1.i need to get the lists and pass to an enduser when he submittes workflow or catalog&lt;/P&gt;
&lt;P&gt;2.I dont see any option to pass these option list to  Python task&lt;/P&gt;
&lt;P&gt;I get this error when i pass option list in workflow&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;&lt;DIV class="lightbox-wrapper"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://community.hpe.com/t5/image/serverpage/image-id/149855iD31CF54C723A7BFE/image-size/large?v=v2&amp;amp;px=2000" role="button" title="42b29cbc696e3335a6a17c618ca7abd56232cc62.png" alt="42b29cbc696e3335a6a17c618ca7abd56232cc62.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV class="lightbox-wrapper"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://community.hpe.com/t5/image/serverpage/image-id/150569i3751D145A846AEC1/image-size/large?v=v2&amp;amp;px=2000" role="button" title="6501be491d7f4481c9562cc666fb1072b6e76301.png" alt="6501be491d7f4481c9562cc666fb1072b6e76301.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Apr 2023 05:42:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/create-option-list-for-python-task/m-p/7247986#M1160</guid>
      <dc:creator />
      <dc:date>2023-04-25T05:42:05Z</dc:date>
    </item>
    <item>
      <title>Re: Create Option list for Python Task</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/create-option-list-for-python-task/m-p/7247987#M1161</link>
      <description>&lt;P&gt;Sorry &lt;A class="mention" href="https://community.hpe.com/u/paul_b"&gt;@Paul_B&lt;/A&gt;, that was my fault on the information I provided.  My mind glanced over the Python portion.&lt;/P&gt;
&lt;P&gt;I updated my post with better information.  I hope it helps.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Apr 2023 13:27:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/create-option-list-for-python-task/m-p/7247987#M1161</guid>
      <dc:creator>KoreyG</dc:creator>
      <dc:date>2023-04-25T13:27:36Z</dc:date>
    </item>
    <item>
      <title>Re: Create Option list for Python Task</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/create-option-list-for-python-task/m-p/7247988#M1162</link>
      <description>&lt;ASIDE class="quote group-Morpheus-Team quote-modified" data-username="kgawronski" data-post="2" data-topic="1076"&gt;
kgawronski:
&lt;BLOCKQUOTE&gt;
&lt;P&gt;“&amp;lt;%= customOptions.PoolSelectionManual %&amp;gt;”&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;/ASIDE&gt;
&lt;P&gt;i  already used “&amp;lt;%= customOptions.PoolSelectionManual %&amp;gt;” , it needs to be an integer but anyway both are not accepting by system&lt;/P&gt;</description>
      <pubDate>Tue, 25 Apr 2023 13:23:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/create-option-list-for-python-task/m-p/7247988#M1162</guid>
      <dc:creator />
      <dc:date>2023-04-25T13:23:34Z</dc:date>
    </item>
    <item>
      <title>Re: Create Option list for Python Task</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/create-option-list-for-python-task/m-p/7247989#M1163</link>
      <description>&lt;P&gt;You may have to do&lt;BR /&gt;
&lt;CODE style="background : #f0f1f2;"&gt;int("morpheus['customOptions']['PoolSelectionManual']")&lt;/CODE&gt;&lt;BR /&gt;
but how &lt;A class="mention" href="https://community.hpe.com/u/kgawronski"&gt;@kgawronski&lt;/A&gt; wrote the var is how we pass them into Python. (Assuming your input &lt;CODE style="background : #f0f1f2;"&gt;fieldName&lt;/CODE&gt; is “PoolSelectionManual”.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Apr 2023 13:57:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/create-option-list-for-python-task/m-p/7247989#M1163</guid>
      <dc:creator>cbunge</dc:creator>
      <dc:date>2023-04-25T13:57:55Z</dc:date>
    </item>
    <item>
      <title>Re: Create Option list for Python Task</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/create-option-list-for-python-task/m-p/7247990#M1164</link>
      <description>&lt;P&gt;Hello &lt;A class="mention" href="https://community.hpe.com/u/paul_b"&gt;@Paul_B&lt;/A&gt;,&lt;/P&gt;
&lt;P&gt;Using your example I see in the error, I’d expect it to be:&lt;/P&gt;
&lt;P&gt;&lt;CODE style="background : #f0f1f2;"&gt;morpheus['customOptions']['PoolSelectionManual']&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;Similar example:&lt;BR /&gt;
&lt;CODE style="background : #f0f1f2;"&gt;data = {"ldevId": None, "poolId": morpheus['customOptions']['PoolSelectionManual']}&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;That should remove the error from the syntax checker.  All variables in Python are put in the &lt;CODE style="background : #f0f1f2;"&gt;morpheus&lt;/CODE&gt; variable.&lt;/P&gt;
&lt;P&gt;Additional info on the different syntax based on the language:&lt;BR /&gt;
&lt;A href="https://docs.morpheusdata.com/en/latest/troubleshooting/Variables_Examples.html#syntax-examples" class="onebox" target="_blank" rel="noopener"&gt;https://docs.morpheusdata.com/en/latest/troubleshooting/Variables_Examples.html#syntax-examples&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Apr 2023 13:07:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/create-option-list-for-python-task/m-p/7247990#M1164</guid>
      <dc:creator>KoreyG</dc:creator>
      <dc:date>2023-04-25T13:07:17Z</dc:date>
    </item>
    <item>
      <title>Re: Create Option list for Python Task</title>
      <link>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/create-option-list-for-python-task/m-p/7247991#M1165</link>
      <description>&lt;P&gt;Hi , I get below error after trying your suggestion&lt;/P&gt;
&lt;P&gt;Traceback (most recent call last):&lt;BR /&gt;
File “”, line 11, in&lt;BR /&gt;
KeyError: ‘Pool_Selection_Manual_Text’&lt;/P&gt;
&lt;P&gt;Its my code&lt;BR /&gt;
data = {“ldevId”: None, “poolId”: morpheus[‘customOptions’][‘Pool_Selection_Manual_Text’], “byteFormatCapacity”: morpheus[‘customOptions’][‘ByteFormatCapacity’]&lt;/P&gt;</description>
      <pubDate>Wed, 26 Apr 2023 08:31:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-morpheus-enterprise-software/create-option-list-for-python-task/m-p/7247991#M1165</guid>
      <dc:creator />
      <dc:date>2023-04-26T08:31:34Z</dc:date>
    </item>
  </channel>
</rss>

