Skip to content

Commit 91a2410

Browse files
authored
Merge pull request #3080 from E3SM-Project/bartgol/eamxx/fix-check-input
2 parents e140df9 + 21fc583 commit 91a2410

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

components/eamxx/scripts/check_input.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
from CIME.case.check_input_data import _download_if_in_repo
1010
from CIME.utils import expect
1111
from CIME.XML.inputdata import Inputdata
12+
from CIME.Servers import has_svn, has_gftp, has_ftp, has_wget
1213

1314
###############################################################################
1415
def download_file(input_root, the_file):
@@ -19,16 +20,16 @@ def download_file(input_root, the_file):
1920
while not success and protocol is not None:
2021
protocol, address, user, passwd, _, ic_filepath, _ = inputdata.get_next_server()
2122
if protocol is not None:
22-
if protocol == "svn":
23+
if protocol == "svn" and has_svn:
2324
from CIME.Servers import SVN
2425
server = SVN(address, user, passwd)
25-
elif protocol == "gftp":
26+
elif protocol == "gftp" and has_gftp:
2627
from CIME.Servers import GridFTP
2728
server = GridFTP(address, user, passwd)
28-
elif protocol == "ftp":
29+
elif protocol == "ftp" and has_ftp:
2930
from CIME.Servers import FTP
3031
server = FTP.ftp_login(address, user, passwd)
31-
elif protocol == "wget":
32+
elif protocol == "wget" and has_wget:
3233
from CIME.Servers import WGET
3334
server = WGET.wget_login(address, user, passwd)
3435
else:

0 commit comments

Comments
 (0)