Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Convert seconds to nanoseconds for juju.unit.run (#237)
* Convert seconds to nanoseconds for juju.unit.run The juju.unit.run docstring does not specify what units the timeout value should be in. This led to issue #225. Having looked into it, juju is expecting it to be in nanoseconds. I don't think nanoseconds is particularly intuitive so I have updated the function to take the timeout in seconds and convert it internally to nanoseconds. I appreciate this is a breaking change for anyone currently specifying the timeout in nanoseconds so I would quite understand if this change is nack'd in which case I will submit a subsequent pr which simply updates the doc string. Closes #225. * Ensure the timeout is an integer
- Loading branch information