Skip to content

Commit

Permalink
code review
Browse files Browse the repository at this point in the history
  • Loading branch information
ian28223 committed Aug 25, 2021
1 parent 77416a3 commit 9ae1df0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import click
import yaml

from ....constants import MIB_SOURCE_URL
from ...console import CONTEXT_SETTINGS, echo_debug, echo_info, echo_warning, set_debug


Expand All @@ -23,7 +24,7 @@
'--source',
'-s',
help='Source of the MIBs files. Can be a url or a path for a directory',
default='http://raw.githubusercontent.com/trevoro/snmp-mibs/master/mibs/@mib@',
default=MIB_SOURCE_URL,
)
@click.pass_context
def generate_profile_from_mibs(ctx, mib_files, filters, aliases, debug, interactive, source):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import click
import yaml

from ....constants import MIB_SOURCE_URL
from ...console import CONTEXT_SETTINGS


Expand Down Expand Up @@ -37,7 +38,7 @@ def fetch_mib(mib, source_url):
@click.argument('profile_path')
@click.option(
'--mib_source_url',
default='https://raw.githubusercontent.com:443/DataDog/mibs.snmplabs.com/master/asn1/@mib@',
default=MIB_SOURCE_URL,
help='Source url to fetch missing MIBS',
)
@click.pass_context
Expand Down
2 changes: 2 additions & 0 deletions datadog_checks_dev/datadog_checks/dev/tooling/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@

ROOT = ''

MIB_SOURCE_URL = 'https://raw.githubusercontent.com:443/DataDog/mibs.snmplabs.com/master/asn1/@mib@'


def get_root():
return ROOT
Expand Down

0 comments on commit 9ae1df0

Please sign in to comment.