Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check protocol availability in check-input #3080

Merged
merged 1 commit into from
Oct 31, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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