dell / iDRAC-Redfish-Scripting

Python and PowerShell scripting for Dell EMC PowerEdge iDRAC REST API with DMTF Redfish
GNU General Public License v2.0
584 stars 273 forks source link

SyntaxError: invalid syntax on line 157 #259

Closed OmarReygaert closed 1 year ago

OmarReygaert commented 1 year ago

https://github.com/dell/iDRAC-Redfish-Scripting/blob/63e0a0886411e84fccd6b67e3cfc05de16251369/Redfish%20Python/CreateVirtualDiskREDFISH.py#L157

it seems that python gives an error for this line:

iDRAC-Redfish-Scripting/Redfish Python/CreateVirtualDiskREDFISH.py", line 157 print(data), print("\n") ^ SyntaxError: invalid syntax

OmarReygaert commented 1 year ago

This can be fixed by putting the second print on a new line

texroemer commented 1 year ago

Hi @OmarReygaert

I don't see this issue when i run the script (Python 3.10) but looks to be an issue with certain version of Python not liking this format. I went ahead and moved the print new line to the next line.

Thanks Tex

OmarReygaert commented 1 year ago

Thanks @texroemer for the fast resolving. I'm running python3.6 It's working perfectly now.