Skip to content

script can now be use with import as module; added --snapshot --clone_name and --share_name as optional parameter#43

Open
neeral85 wants to merge 6 commits intoopen-e:masterfrom
neeral85:master
Open

script can now be use with import as module; added --snapshot --clone_name and --share_name as optional parameter#43
neeral85 wants to merge 6 commits intoopen-e:masterfrom
neeral85:master

Conversation

@neeral85
Copy link

script can now be use with import as module
`import jdss_api_tools.py as jdss

jdssArgs = {'cmd': 'info'}
jdss.main(jdssArgs)
`

added some useful parameters
formatting changes to coding guidelines (pycharm)

added --snapshot --clone_name and --share_name as optional parameter
if create/delete clone of an existing snapshot, current snapshot name can now different from snapshot name provided for new snapshots.
This is useful if you manually provide --snapshot --clone_name and --share_name

neeral85 added 5 commits July 11, 2020 23:47
if create/delete clone of an existing snapshot, current snapshot name can now different from snapshot name provided for new snapshots.
This is useful if you manually provide --snapshot --clone_name and --share_name
@januszbak
Copy link
Contributor

Thank you for improvments. Can you pls fix it ?
Traceback (most recent call last):
File "C:\Users\Administrator\Documents\jdss-tools-work\jdss-api-tools1.py", line 5093, in
main()
TypeError: main() takes exactly 1 argument (0 given)

bugfix args and bool compare
@neeral85
Copy link
Author

I've fixed the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants