Skip to content

Commit

Permalink
Merge pull request #3080 from E3SM-Project/bartgol/eamxx/fix-check-input
Browse files Browse the repository at this point in the history
  • Loading branch information
bartgol authored Oct 31, 2024
2 parents e140df9 + 21fc583 commit 91a2410
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions components/eamxx/scripts/check_input.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
from CIME.case.check_input_data import _download_if_in_repo
from CIME.utils import expect
from CIME.XML.inputdata import Inputdata
from CIME.Servers import has_svn, has_gftp, has_ftp, has_wget

###############################################################################
def download_file(input_root, the_file):
Expand All @@ -19,16 +20,16 @@ def download_file(input_root, the_file):
while not success and protocol is not None:
protocol, address, user, passwd, _, ic_filepath, _ = inputdata.get_next_server()
if protocol is not None:
if protocol == "svn":
if protocol == "svn" and has_svn:
from CIME.Servers import SVN
server = SVN(address, user, passwd)
elif protocol == "gftp":
elif protocol == "gftp" and has_gftp:
from CIME.Servers import GridFTP
server = GridFTP(address, user, passwd)
elif protocol == "ftp":
elif protocol == "ftp" and has_ftp:
from CIME.Servers import FTP
server = FTP.ftp_login(address, user, passwd)
elif protocol == "wget":
elif protocol == "wget" and has_wget:
from CIME.Servers import WGET
server = WGET.wget_login(address, user, passwd)
else:
Expand Down

0 comments on commit 91a2410

Please sign in to comment.