From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by mx.groups.io with SMTP id smtpd.web12.1487.1589309127835945037 for ; Tue, 12 May 2020 11:45:28 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: intel.com, ip: 134.134.136.20, mailfrom: ashley.e.desimone@intel.com) IronPort-SDR: sAPAKrPDNKT+TjYHb63rwd3lGis9hV9rtIPWgjlSVX7pe7lyA7pBMZg4lOzKVuo2lHg21q3aRM niAKndNSadgg== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 May 2020 11:45:27 -0700 IronPort-SDR: +S07l9IaQeevC9q3Tug5r/gTP/hW70B2PIBw3nMSHqccUjwoI8eGcWJOQ1EnnKTI4hTCcCETVt j40cw+ofk5ng== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,384,1583222400"; d="scan'208";a="371653939" Received: from aedesimo-desk.amr.corp.intel.com ([10.212.105.65]) by fmsmga001.fm.intel.com with ESMTP; 12 May 2020 11:45:26 -0700 From: "Ashley E Desimone" To: devel@edk2.groups.io Cc: Nate DeSimone , Puja Pandya , Erik Bjorge , Bret Barkelew , Prince Agyeman Subject: [edk2-staging/EdkRepo] [PATCH] EdkRepo: Update return values of manifest_repo_list Date: Tue, 12 May 2020 11:45:24 -0700 Message-Id: <20200512184524.14376-1-ashley.e.desimone@intel.com> X-Mailer: git-send-email 2.16.2.windows.1 Update the manifest_repo_list property to return an empty list if no [manifest-repos] section was present in the config file. Signed-off-by: Ashley E Desimone Cc: Nate DeSimone Cc: Puja Pandya Cc: Erik Bjorge Cc: Bret Barkelew Cc: Prince Agyeman --- edkrepo/config/config_factory.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/edkrepo/config/config_factory.py b/edkrepo/config/config_factory.py index c0b9f68..116cb24 100644 --- a/edkrepo/config/config_factory.py +++ b/edkrepo/config/config_factory.py @@ -119,6 +119,8 @@ class BaseConfig(): """Returns a list of available manifest repos""" if self.cfg.has_section('manifest-repos'): return self.cfg.options('manifest-repos') + else: + return [] def manifest_repo_props(self, manifest_repo): """ -- 2.16.2.windows.1