Closed immarvin closed 5 years ago
import UT:
[root@briggs01 ~]# cat /tmp/new
osdistro:
new:
arch: ppc64le
basename: rhels
dirpaths: /install/REPO/os/rhels7.5
majorversion: '7'
minorversion: '5'
type: Linux
schema_version: '2.0'
#Version 2.14.6 (git commit c76c3c0d451c42cae3c726e158cfebbfcc37e0bf, built Wed Jan 16 06:16:24 EST 2019)
[root@briggs01 ~]#
[root@briggs01 ~]# xcat-inventory import -f /tmp/new
loading inventory date in "/tmp/new"
start to import "osdistro" type objects
preprocessing "osdistro" type objects
writting "osdistro" type objects
Inventory import successfully!
[root@briggs01 ~]# lsdef -t osdistro -o new
Object name: new
arch=ppc64le
basename=rhels
dirpaths=/install/REPO/os/rhels7.5
majorversion=7
minorversion=5
type=Linux
this PR is to fix issue https://github.com/xcat2/xcat-inventory/issues/184:
UT result: