Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Input file was not properly formatted. iLorest rawpatch #167

Open
Rinaldo-lsw opened this issue Oct 28, 2024 · 2 comments
Open

Input file was not properly formatted. iLorest rawpatch #167

Rinaldo-lsw opened this issue Oct 28, 2024 · 2 comments

Comments

@Rinaldo-lsw
Copy link

Since iLorest 5.3.0.0 I get this error.
5.2.0.0 works as expected.

[root@s649156 ~]# cat patch.json
{
    "/redfish/v1/Managers/1/EthernetInterfaces/2/": {"InterfaceEnabled": false},
    "/redfish/v1/Managers/1/EthernetInterfaces/1/": {"InterfaceEnabled": true}
}
[root@s649156 ~]# ilorest --nologo rawpatch patch.json

Error: Input file 'patch.json' was not format properly.
@rajeevkallur
Copy link

@Rinaldo-lsw , thanks for reporting. This will be fixed in next release. In the meantime, you can have patch.json as

{
"path" : "/redfish/v1/Managers/1/EthernetInterfaces/2/",
"body": {"InterfaceEnabled": false }
}

@Rinaldo-lsw
Copy link
Author

@Rinaldo-lsw , thanks for reporting. This will be fixed in next release. In the meantime, you can have patch.json as

{ "path" : "/redfish/v1/Managers/1/EthernetInterfaces/2/", "body": {"InterfaceEnabled": false } }

Thank you for your quick response.
Since we run all our automation using redfish with json, I'd rather lock the version to 5.2.0.0 for now instead of changing it all.

I'll leave notifications on for this thread, if you could let me know once the update is there, that would be great!

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

No branches or pull requests

2 participants