-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #124 from nttcom/feature-#59_black
#59 blackで整形するように設定
- Loading branch information
Showing
21 changed files
with
86 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
name: black | ||
|
||
on: pull_request | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: psf/black@stable |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,4 +9,5 @@ | |
*.log | ||
*.pcap | ||
*~ | ||
Dockerfile.* | ||
Dockerfile.* | ||
__pycache__ |
Binary file removed
BIN
-1.58 KB
osect_sensor/Application/edge_cron/common/__pycache__/common_config.cpython-38.pyc
Binary file not shown.
Binary file removed
BIN
-8.81 KB
osect_sensor/Application/edge_cron/common/__pycache__/common_function.cpython-38.pyc
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file removed
BIN
-122 Bytes
osect_sensor/Application/edge_cron/cron/__pycache__/__init__.cpython-38.pyc
Binary file not shown.
Binary file removed
BIN
-338 Bytes
osect_sensor/Application/edge_cron/cron/__pycache__/apps.cpython-38.pyc
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,4 @@ | |
|
||
|
||
class CronConfig(AppConfig): | ||
name = 'cron' | ||
name = "cron" |
Binary file removed
BIN
-133 Bytes
osect_sensor/Application/edge_cron/cron/management/__pycache__/__init__.cpython-38.pyc
Binary file not shown.
Binary file removed
BIN
-142 Bytes
...sensor/Application/edge_cron/cron/management/commands/__pycache__/__init__.cpython-38.pyc
Binary file not shown.
Binary file removed
BIN
-7.94 KB
...cation/edge_cron/cron/management/commands/__pycache__/complete_to_archives.cpython-38.pyc
Binary file not shown.
Binary file removed
BIN
-7.59 KB
...ation/edge_cron/cron/management/commands/__pycache__/pcap_to_log_to_server.cpython-38.pyc
Binary file not shown.
Binary file removed
BIN
-1.43 KB
...or/Application/edge_cron/cron/management/commands/__pycache__/send_version.cpython-38.pyc
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file removed
BIN
-127 Bytes
osect_sensor/Application/edge_cron/edge_cron/__pycache__/__init__.cpython-38.pyc
Binary file not shown.
Binary file removed
BIN
-3.15 KB
osect_sensor/Application/edge_cron/edge_cron/__pycache__/settings.cpython-38.pyc
Binary file not shown.
Binary file removed
BIN
-875 Bytes
osect_sensor/Application/edge_cron/edge_cron/__pycache__/urls.cpython-38.pyc
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 8 additions & 8 deletions
16
osect_sensor/tools/sosreport/plugins/osect_probe_on_docker.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
|
||
import os | ||
|
||
from sos.report.plugins import Plugin, IndependentPlugin | ||
from sos.report.plugins import IndependentPlugin, Plugin | ||
|
||
|
||
class osect_probe_on_docker_logs(Plugin, IndependentPlugin): | ||
def setup(self): | ||
sos_logs_path = os.environ.get('SOS_LOGS_PATH', None) | ||
sos_logs_path = os.environ.get("SOS_LOGS_PATH", None) | ||
if sos_logs_path: | ||
self.add_copy_spec([ | ||
'/var/log', | ||
'%s/logs/ottools' % (sos_logs_path), | ||
]) | ||
|
||
self.add_copy_spec( | ||
[ | ||
"/var/log", | ||
"%s/logs/ottools" % (sos_logs_path), | ||
] | ||
) |