Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F7163822
D4149.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
D4149.diff
View Options
diff --git a/bin/octocatalog-diff b/bin/octocatalog-diff
--- a/bin/octocatalog-diff
+++ b/bin/octocatalog-diff
@@ -7,7 +7,7 @@
FACTS_DIR="${OCD_BASE}/facts"
function usage {
- echo "usage: $0 [-f/--from from_branch] [-t/--to to_branch] [--no-clean-tmp] [--r10k-args r10k-args] [--octocatalog-diff-args octocatalog-diff-args] host1 host2 ..."
+ echo "usage: $0 [-f/--from from_branch] [-t/--to to_branch] [--no-clean-tmp] [--r10k-args r10k-args] [--octocatalog-diff-args octocatalog-diff-args] [--environment environment] host1 host2 ..."
}
CLEAN_TMPDIR=true
@@ -17,6 +17,7 @@
HOSTS=()
OCTOCATALOG_DIFF_ARGS=
R10K_ARGS=
+PUPPET_ENVIRONMENT=production
while (( "$#" )); do
case "$1" in
@@ -28,6 +29,10 @@
TO=$2
shift
;;
+ --environment)
+ PUPPET_ENVIRONMENT=$2
+ shift
+ ;;
--no-clean-tmp)
CLEAN_TMPDIR=false
;;
@@ -127,6 +132,7 @@
octocatalog-diff \
--bootstrapped-from-dir $TMPDIR/environments/$FROM \
--bootstrapped-to-dir $TMPDIR/environments/$TO \
+ --environment $PUPPET_ENVIRONMENT \
-n $host \
--display-detail-add \
$OCTOCATALOG_DIFF_ARGS
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Jan 30, 4:10 PM (2 h, 1 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3224935
Attached To
D4149: bin/octocatalog-diff: Provide the environment when diff-ing
Event Timeline
Log In to Comment