Skip to content

Commit

Permalink
Fixing new linter
Browse files Browse the repository at this point in the history
  • Loading branch information
tdviet committed May 5, 2021
1 parent ea28f14 commit c76e4e3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion fedcloudclient/endpoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,7 @@ def get_projects_from_sites(access_token, site):
)
return project_list


def get_projects_from_sites_dict(access_token, site):
"""
Get all projects as a dictionary from sites using access token,
Expand All @@ -257,7 +258,7 @@ def get_projects_from_sites_dict(access_token, site):
"project_id": p["id"],
"name": p["name"],
"enabled": p["enabled"],
"site": ep[0]
"site": ep[0],
}
for p in get_projects(os_auth_url, unscoped_token)
]
Expand Down
4 changes: 2 additions & 2 deletions fedcloudclient/sites.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,22 +13,22 @@
import builtins
import json
from pathlib import Path
from typing import List
from urllib.request import Request, urlopen

import click
import pkg_resources
import yaml
from fedcloudclient.decorators import site_params, site_vo_params
from jsonschema import validate
from typing import List

__REMOTE_CONFIG_FILE = (
"https://raw.githubusercontent.com/tdviet/fedcloudclient/master/config/sites.yaml"
)

__LOCAL_CONFIG_DIR = ".config/fedcloud/site-config/"

__site_config_data: List[str] = []
__site_config_data: List[dict] = []

__FILE_SIZE_LIMIT = 1024 * 1024 # Max size for config files

Expand Down

0 comments on commit c76e4e3

Please sign in to comment.