From: Thierry Parmentelat Date: Sat, 2 Jun 2012 10:39:35 +0000 (+0200) Subject: sfi update checks for its args a bit more robustly X-Git-Tag: sfa-2.1-8~3 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=cdc2c9fe65af84696e93b6365fe6f5b37f9df9a4;p=sfa.git sfi update checks for its args a bit more robustly --- diff --git a/sfa/client/sfi.py b/sfa/client/sfi.py index 6b0934d0..b114c303 100644 --- a/sfa/client/sfi.py +++ b/sfa/client/sfi.py @@ -861,7 +861,8 @@ or version information about sfi itself record_dict.update(load_record_from_file(rec_file).todict()) if options: record_dict.update(load_record_from_opts(options).todict()) - if not record_dict: + # at the very least we need 'type' here + if 'type' not in record_dict: self.print_help() sys.exit(1)