balena-sdk-python icon indicating copy to clipboard operation
balena-sdk-python copied to clipboard

Supervisor Functions list app_id and device_uuid as optional

Open hunterjackson opened this issue 6 years ago • 2 comments

Documentation link: https://github.com/resin-io/resin-sdk-python/blob/master/DOCUMENTATION.md#supervisor

Code that makes them both mandatory: https://github.com/resin-io/resin-sdk-python/blob/master/resin/models/supervisor.py#L39-L44

hunterjackson avatar Mar 26 '18 19:03 hunterjackson

@hunterjackson So sorry that our docs leads to misunderstandings, they're marked as optional since if you call these functions from inside application container then you don't need to pass these parameters while they're mandatory if called outside application container.

We will update our docs to fix the misunderstandings, thanks for raising this issue.

nghiant2710 avatar Apr 04 '18 06:04 nghiant2710

Curious as if I simply comment out the lines checking for those parameters and raising an error if they're not there, only one of the parameters are needed and the function I tested works fine.

On Tue, Apr 3, 2018, 11:16 PM Trong Nghia Nguyen [email protected] wrote:

@hunterjackson https://github.com/hunterjackson So sorry that our docs leads to misunderstandings, they're marked as optional since if you call these functions from inside application container then you don't need to pass these parameters while they're mandatory if called outside application container.

We will update our docs to fix the misunderstandings, thanks for raising this issue.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/resin-io/resin-sdk-python/issues/77#issuecomment-378492014, or mute the thread https://github.com/notifications/unsubscribe-auth/AGhwyoKjQX5V64LsBPzNjOb2-tFZT4asks5tlGUKgaJpZM4S7yr4 .

-- Hunter Jackson Data Engineer Sight Machine [email protected] M: +1-863-255-7155

hunterjackson avatar Apr 04 '18 15:04 hunterjackson