bsdci / libioc

A Python library to manage jails with ioc{age,ell}
https://bsd.ci/libioc
Other
38 stars 11 forks source link

Listing of releases should output dataset #708

Closed urosgruber closed 5 years ago

urosgruber commented 5 years ago

I think it would be nice to show dataset as well. Looks kinda confusing right now

ioc list -r

+--------------+
|  FULL_NAME   |
+==============+
| 11.2-RELEASE |
+--------------+
| 12.0-RELEASE |
+--------------+
| 11.2-RELEASE |
+--------------+
| 12.0-RELEASE |
+--------------+
gronke commented 5 years ago

For jails, libioc prints full identifiers (<SOURCE_DATASET_NAME>/<JAIL_NAME>) as soon as there is more than one dataset configured. The same should happen for release names.

urosgruber commented 5 years ago

Weird. I have two datasets and each have both releases. But there is not details of dataset and in case I would have some other release only on one of them I wouldn't know to what dataset release belongs.

gronke commented 5 years ago

Weird. I have two datasets and each have both releases.

They are necessary to clone new jails from. Cloning across pools might not be possible, so libioc requires to have each release available on all source datasets.

But there is not details of dataset and in case I would have some other release only on one of them I wouldn't know to what dataset release belongs.

Understood. The issue here is that ioc list -r does not support output columns. This is an issue of the CLI. (see https://github.com/bsdci/ioc/issues/30)

urosgruber commented 5 years ago

I guess this one can be closed then.