Skip to content

Commit

Permalink
Update Fix -> FixInventory (#1957)
Browse files Browse the repository at this point in the history
* fix -> fixinventory

* lint
  • Loading branch information
lloesche authored Feb 28, 2024
1 parent debafe4 commit ab21ad7
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 9 deletions.
11 changes: 6 additions & 5 deletions fixcore/fixcore/cli/command.py
Original file line number Diff line number Diff line change
Expand Up @@ -5180,9 +5180,9 @@ async def show_help() -> AsyncIterator[str]:
class AppsCommand(CLICommand):
"""
```shell
apps search [pattern] [--index-url https://cdn.some.engineering/fix/apps/index.json]
app info <app_name> [--index-url https://cdn.some.engineering/fix/apps/index.json]
app install <app_name> [--index-url https://cdn.some.engineering/fix/apps/index.json]
apps search [pattern] [--index-url https://cdn.some.engineering/fixinventory/apps/index.json]
app info <app_name> [--index-url https://cdn.some.engineering/fixinventory/apps/index.json]
app install <app_name> [--index-url https://cdn.some.engineering/fixinventory/apps/index.json]
app edit <app_name>
app uninstall <app_name>
app update <app_name>|all
Expand All @@ -5191,7 +5191,8 @@ class AppsCommand(CLICommand):
```
- `apps search [pattern]`: Lists all apps available in the index
https://cdn.some.engineering/fix/apps/index.json (or other URL if specified). Supports filtering by pattern.
https://cdn.some.engineering/fixinventory/apps/index.json (or other URL if specified).
Supports filtering by pattern.
- `app info <app_name>`: Show information about an app.
- `app install <app_name>`: Install an app.
- `app edit <app_name>`: Edit an app.
Expand All @@ -5207,7 +5208,7 @@ class AppsCommand(CLICommand):
## Options
- `--index-url <url>`: The index file to use for searching for apps.
Defaults to https://cdn.some.engineering/fix/apps/index.json.
Defaults to https://cdn.some.engineering/fixinventory/apps/index.json.
- `--dry-run`: Run the app but do not make any changes.
- `--config <config_name>`: The configuration to use to run the app. Defaults to the default configuration.
"""
Expand Down
2 changes: 1 addition & 1 deletion fixcore/fixcore/infra_apps/package_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def __init__(
self.update_lock: Optional[Lock] = None
self.repos_cache_directory: Path = repos_cache_directory
self.cleanup_task: Optional[asyncio.Task[None]] = None
self.cdn_url = "https://cdn.some.engineering/fix/apps/index.json"
self.cdn_url = "https://cdn.some.engineering/fixinventory/apps/index.json"
self.add_command_alias = add_command_alias
self.remove_command_alias = remove_command_alias

Expand Down
2 changes: 1 addition & 1 deletion plugins/aws/tools/awspolicygen/awspolicygen/gen.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def iam_statement(name: str, apis: list[AwsApiSpec]) -> tuple[set[str], str]:

def get_cf_template() -> str:
local_path = os.path.abspath(os.path.dirname(__file__))
template_path = os.path.join(local_path, "templates/fix-role.template.in")
template_path = os.path.join(local_path, "templates/fixinventory-role.template.in")
with open(template_path, "r") as f:
template = f.readlines()

Expand Down
4 changes: 2 additions & 2 deletions plugins/aws/tools/awspolicygen/awspolicygen/upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,10 @@ def upload_policies(args: Namespace) -> None:

# Create the CloudFormation template
cf_template = get_cf_template()
cf_filename = f"{tmpdirname}/fix-role.template"
cf_filename = f"{tmpdirname}/fixinventory-role.template"
with open(cf_filename, "w") as f:
f.write(cf_template)
key_name = f"{args.aws_s3_bucket_path}fix-role.template"
key_name = f"{args.aws_s3_bucket_path}fixinventory-role.template"

# Upload the CloudFormation template to S3
log.debug(f"Uploading {cf_filename} to {key_name} in {args.aws_s3_bucket}")
Expand Down

0 comments on commit ab21ad7

Please sign in to comment.