projects
/
snf-image-creator
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Handle better images with distro="unknown"
[snf-image-creator]
/
image_creator
/
image.py
diff --git
a/image_creator/image.py
b/image_creator/image.py
index
a5804a3
..
7d1ddfe
100644
(file)
--- a/
image_creator/image.py
+++ b/
image_creator/image.py
@@
-107,7
+107,9
@@
class Image(object):
self.ostype = self.g.inspect_get_type(self.root)
self.distro = self.g.inspect_get_distro(self.root)
self.ostype = self.g.inspect_get_type(self.root)
self.distro = self.g.inspect_get_distro(self.root)
- self.out.success('found a(n) %s system' % self.distro)
+ self.out.success(
+ 'found a(n) %s system' %
+ self.ostype if self.distro == "unknown" else self.distro)
def _get_os(self):
"""Return an OS class instance for this image"""
def _get_os(self):
"""Return an OS class instance for this image"""