diff options
author | Narayan Desai <desai@mcs.anl.gov> | 2008-10-31 18:24:59 +0000 |
---|---|---|
committer | Narayan Desai <desai@mcs.anl.gov> | 2008-10-31 18:24:59 +0000 |
commit | e2353dfa1e3c9b64400601ce88bd020d513964c4 (patch) | |
tree | f6fdf6f4f689b346bbebd0d6ea6760d84a63b8d0 /src/lib/Server/Admin/Pull.py | |
parent | 87af246a7de31b0a2db66bdd7c14ad79510185ba (diff) | |
download | bcfg2-e2353dfa1e3c9b64400601ce88bd020d513964c4.tar.gz bcfg2-e2353dfa1e3c9b64400601ce88bd020d513964c4.tar.bz2 bcfg2-e2353dfa1e3c9b64400601ce88bd020d513964c4.zip |
handle non-interactive pull where no choices exist
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4958 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/lib/Server/Admin/Pull.py')
-rw-r--r-- | src/lib/Server/Admin/Pull.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/Server/Admin/Pull.py b/src/lib/Server/Admin/Pull.py index 4eef85ab0..837298432 100644 --- a/src/lib/Server/Admin/Pull.py +++ b/src/lib/Server/Admin/Pull.py @@ -82,6 +82,8 @@ class Pull(Bcfg2.Server.Admin.MetadataCore): return False else: # mode == 'force' + if not choices: + return False return choices[0] def PullEntry(self, client, etype, ename): |