diff options
author | Chris St. Pierre <chris.a.st.pierre@gmail.com> | 2013-09-03 10:53:55 -0400 |
---|---|---|
committer | Chris St. Pierre <chris.a.st.pierre@gmail.com> | 2013-09-03 10:53:55 -0400 |
commit | 46f367e8c2cda9186a1840fcef17267b464b7866 (patch) | |
tree | 75b37523b1a7956e3208d983669bec9788a6b41c /src/lib | |
parent | 73db4fababe1a9256a5e3b11aef5be3eebddb8d2 (diff) | |
download | bcfg2-46f367e8c2cda9186a1840fcef17267b464b7866.tar.gz bcfg2-46f367e8c2cda9186a1840fcef17267b464b7866.tar.bz2 bcfg2-46f367e8c2cda9186a1840fcef17267b464b7866.zip |
bcfg2-info: expand null list of hostname globs correctly
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/Bcfg2/Server/Info.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/Bcfg2/Server/Info.py b/src/lib/Bcfg2/Server/Info.py index 649ab2bb7..fb849f0c6 100644 --- a/src/lib/Bcfg2/Server/Info.py +++ b/src/lib/Bcfg2/Server/Info.py @@ -92,7 +92,7 @@ class InfoCmd(Bcfg2.Options.Subcommand): # pylint: disable=W0223 """ Given a list of globs, select the items from candidates that match the globs """ # special cases to speed things up: - if globs is None or '*' in globs: + if not globs or '*' in globs: return candidates has_wildcards = False for glob in globs: |