Hi Eugenio,
Thanks for the question. You won't clearly see your Python files nor your bash scripts in the artifact.json file. We've changed how we package the plugin and the fields in the screenshot aren't used in GA.
Your Python code to read the script looks correct. It looks like you have already seen this, but
here is the doc on managing remote scripts. It has examples for reading and executing a script. One piece of the doc I want to call out is:
"pkgutil.get_data cannot retrieve the contents of a resource that is not in a Python package. This means that a resource that is in the first level of your source directory will not be retrievable with pkgutil. Resources must be in a subdirectory of your source directory, and that subdirectory must contain an __init__.py file."
Does your resources folder have an __init__.py file in it? The __init__.py file can be empty.
- Grant
------------------------------
Grant Magdanz
Senior Member of Technical Staff II
Delphix
------------------------------
Original Message:
Sent: 09-13-2019 06:45:46 AM
From: Eugenio -
Subject: SDK Implement script bash in artifact
Hi all,
I generated a script in bash, currently I see the following artifact.json, my goal is to insert the script in the artifactHow can I solve the problem?
Can you give me an example?
Regards,
Eugenio Pascuzzi
------------------------------
Eugenio Pascuzzi
Community Member
Higher Logic Community Members
------------------------------