Open whowutwut opened 6 years ago
hi @whowutwut , currently, if osimage.environvars
contains any environment variable, xcat-inventory export
will replace the attribute values with the string with the environment variables like {{GITREPO}}
, I can add an option to tell xcat-inventory
to disable the feature and output the raw value in xCAT DB. is it ok?
@whowutwut That's why we need a diff
in xcat-inventory.
@robin2008 Sorry for the late response...
but do we really? Without the environment variable, I'm able to do what I need to do... with the environment variable, it abstracts out the info, which is why you need a diff.
If you never abstracted out, there's no need to create a diff command in xcat-inventory.
I think in this scenario, we created unnecessary work for ourselves by creating a use case that doesn't exist.
I agree that the inventory file generated by xcat-inventory export
should not contain any environment variable, while environment variable
is useful for xcat-inventory import
. I suggest remove the behavior of "restore" environment variable on xcat-inventory export
, since it is impossible to "restore" the imported raw inventory with environment variable completely
@immarvin I have a use case yesterday to compare a osimage definition created on an xCAT MN node to an osimage definintion that we have already put into source control
The process that I've used
So the otherpkglist looks like:
At this point, I can copy and paste and look at these files and what rpms they point to and compare with what is pointed to in source control.. direct copy and paste
But when we do something like this:
I can't copy and paste it.. and cat this file easily.... do you have any suggestions, let's discuss