]> Frank Brehm's Git Trees - pixelpark/puppet-tools.git/commitdiff
Making the default forge URL more common available.
authorFrank Brehm <frank.brehm@pixelpark.com>
Thu, 9 Feb 2023 12:43:37 +0000 (13:43 +0100)
committerFrank Brehm <frank.brehm@pixelpark.com>
Thu, 9 Feb 2023 12:43:37 +0000 (13:43 +0100)
lib/dpx_puppettools/__init__.py
lib/dpx_puppettools/puppetfile.py

index a24125414e8784f2b01393e9686a2fae5df7179e..13d91f81df7b47fac291f97491a6bac62ae322f5 100644 (file)
@@ -8,13 +8,15 @@ import shutil
 # Own modules
 import fb_tools.common
 
-__version__ = '0.1.0'
+__version__ = '0.2.0'
 
 MAX_PORT_NUMBER = (2 ** 16) - 1
 DEFAULT_CONFIG_DIR = 'pixelpark'
 DEFAULT_TERMINAL_WIDTH = 99
 DEFAULT_TERMINAL_HEIGHT = 40
 
+DEFAULT_FORGE_URL = 'https://forge.puppetlabs.com'
+
 
 # =============================================================================
 def pp(value, indent=4, width=None, depth=None):
index eb2018f58cf6969c3c815671aff7e2c9829b7960..c8811b1384ba980adfdf6cdf74bb3fed0966a5f9 100644 (file)
@@ -24,6 +24,8 @@ from fb_tools.common import pp, to_str, to_bool, is_sequence
 from fb_tools.obj import FbBaseObjectError, FbBaseObject
 
 # Own modules
+from . import DEFAULT_FORGE_URL
+
 from .pfile_moduleinfo import PuppetfileModuleInfo
 
 from .errors import BaseModuleInfoError
@@ -32,7 +34,7 @@ from .module_list import ModuleInfoDict
 
 from .xlate import XLATOR
 
-__version__ = '1.3.1'
+__version__ = '1.3.2'
 
 LOG = logging.getLogger(__name__)
 
@@ -54,7 +56,7 @@ class Puppetfile(FbBaseObject):
     default_env_root_dir = os.sep + os.path.join("etc", "puppetlabs", "code", "environments")
     default_env_root_dir = Path(os.sep) / "etc" / "puppetlabs" / "code" / "environments"
     default_moduledir = Path('modules')
-    default_forge_url = 'https://forge.puppetlabs.com'
+    default_forge_url = DEFAULT_FORGE_URL
 
     re_comment = re.compile(r'^\s*#')
     re_inline_comment = re.compile(r'\s+#.*')