Instruction stringlengths 13 145k | input_code stringlengths 35 390k | output_code stringlengths 35 390k |
|---|---|---|
Request for non-existent domain or service in a call_service to throw an exception.
Currently, if a service_call that doesn't exist is called, a WARNING is displayed in logs saying "Unknown domain".
This request is to raise an exception if the domain or the service doesn't exist and specify in the exception if the d... | appdaemon/adapi.py
<|code_start|>import asyncio
import datetime
import inspect
import iso8601
import re
from datetime import timedelta
from copy import deepcopy
from typing import Any, Optional, Callable
# needed for fake coro cb that looks like scheduler
import uuid
import appdaemon.utils as utils
from appdaemon.app... | appdaemon/adapi.py
<|code_start|>import asyncio
import datetime
import inspect
import iso8601
import re
from datetime import timedelta
from copy import deepcopy
from typing import Any, Optional, Callable
# needed for fake coro cb that looks like scheduler
import uuid
import appdaemon.utils as utils
from appdaemon.app... |
register_endpoint fails since version 4.0.1
Hello,
since version 4.1.0 register_endpoint() does not work when more than one app registers endpoints and one of these apps is restarted. It always says that the endpoint is already registered to another app (which is not true). The endpoints are correctly registered (an... | appdaemon/http.py
<|code_start|>import asyncio
import json
import os
import re
import time
import traceback
import concurrent.futures
from typing import Callable, Optional
from urllib.parse import urlparse
import feedparser
from aiohttp import web
import ssl
import bcrypt
import uuid
from jinja2 import Environment, Fil... | appdaemon/http.py
<|code_start|>import asyncio
import json
import os
import re
import time
import traceback
import concurrent.futures
from typing import Callable, Optional
from urllib.parse import urlparse
import feedparser
from aiohttp import web
import ssl
import bcrypt
import uuid
from jinja2 import Environment, Fil... |
Improve packaging system
The `requirements.txt` file is used in a bit confusing way. It it usual practice for this file to contain all the dependencies present in the project virtualenv, created using `pip freeze > requirements.txt`, so that the virtualenv can be easily re-created by any developer locally using `pip in... | setup.py
<|code_start|>#!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
from appdaemon.version import __version__
# sudo apt-get install python3-aiohttp-dbg
with open("requirements.txt") as f:
install_requires = [x for x in f.read().split("\n") if x]
with open("README.m... | setup.py
<|code_start|><|code_end|>
|
Reimplement /received
When merging code for items_handling, `/received` for TextClient got broken, because "can receive, but can't send" is not a thing anymore.
Actual implementation does not require a server update. I misremembered. no_location/tags and items_handling are completely separate.
\
-- original text... | CommonClient.py
<|code_start|>from __future__ import annotations
import logging
import asyncio
import urllib.parse
import sys
import typing
import time
import ModuleUpdate
ModuleUpdate.update()
import websockets
import Utils
if __name__ == "__main__":
Utils.init_logging("TextClient", exception_logger="Client")
... | CommonClient.py
<|code_start|>from __future__ import annotations
import logging
import asyncio
import urllib.parse
import sys
import typing
import time
import ModuleUpdate
ModuleUpdate.update()
import websockets
import Utils
if __name__ == "__main__":
Utils.init_logging("TextClient", exception_logger="Client")
... |
Minecraft Randomizer
Adds support for randomizing Minecraft.
- Requires the client-side mod found at [https://github.com/KonoTyran/Minecraft_AP_Randomizer](https://github.com/KonoTyran/Minecraft_AP_Randomizer) to communicate with the server.
- Locations are Minecraft advancements; items are crafting recipes and var... | MultiServer.py
<|code_start|>from __future__ import annotations
import argparse
import asyncio
import copy
import functools
import logging
import zlib
import collections
import datetime
import functools
import hashlib
import inspect
import itertools
import logging
import operator
import pickle
import random
import thr... | MultiServer.py
<|code_start|>from __future__ import annotations
import argparse
import asyncio
import copy
import functools
import logging
import zlib
import collections
import datetime
import functools
import hashlib
import inspect
import itertools
import logging
import operator
import pickle
import random
import thr... |
fixed !missing to point to location table not item.
| MultiServer.py
<|code_start|>from __future__ import annotations
import argparse
import asyncio
import copy
import functools
import logging
import zlib
import collections
import datetime
import functools
import hashlib
import inspect
import itertools
import logging
import operator
import pickle
import random
import thr... | MultiServer.py
<|code_start|>from __future__ import annotations
import argparse
import asyncio
import copy
import functools
import logging
import zlib
import collections
import datetime
import functools
import hashlib
import inspect
import itertools
import logging
import operator
import pickle
import random
import thr... |
LTTP: remove multiworld = None
## What is this fixing or adding?
adds an assert to World creation that multiworld isn't None, removes lttp creating and disposing world objects, and has the item creation test create a multiworld object since server doesn't create items that way anymore.
## How was this tested?
unit... | worlds/alttp/ItemPool.py
<|code_start|>from collections import namedtuple
import logging
from BaseClasses import ItemClassification
from Fill import FillError
from .SubClasses import ALttPLocation, LTTPRegion, LTTPRegionType
from .Shops import TakeAny, total_shop_slots, set_up_shops, shop_table_by_location, ShopType
... | worlds/alttp/ItemPool.py
<|code_start|>from collections import namedtuple
import logging
from BaseClasses import ItemClassification
from Fill import FillError
from .SubClasses import ALttPLocation, LTTPRegion, LTTPRegionType
from .Shops import TakeAny, total_shop_slots, set_up_shops, shop_table_by_location, ShopType
... |
az webapp new throws an exception when it can't detect a project type.
### Extension name (the extension in question)
webapp
### Description of issue (in as much detail as possible)
This should fail gracefully:
```
bash-4.3# cd /
bash-4.3# ls
appp bin etc lib media proc ... | src/webapp/azext_webapp/create_util.py
<|code_start|># --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# ---------------... | src/webapp/azext_webapp/create_util.py
<|code_start|># --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# ---------------... |
Change help for az webapp new
### Extension name (the extension in question)
webapp
### Description of issue (in as much detail as possible)
currently the help information for the command return the
Command
az webapp new: Create and deploy a node web app.
Requested changes:
- add the callout for .ne... | src/webapp/azext_webapp/_help.py
<|code_start|># --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# ---------------------... | src/webapp/azext_webapp/_help.py
<|code_start|># --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# ---------------------... |
Switch to using Node 8.9 as the default version for az webapp new
| src/webapp/azext_webapp/_constants.py
<|code_start|># --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# ----------------... | src/webapp/azext_webapp/_constants.py
<|code_start|># --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# ----------------... |
webapp remote-connection create fails if specifying --port on version 0.2.7
### Extension name (the extension in question)
webapp
### Description of issue (in as much detail as possible)
The following command will fail when specifying --port after updating to version 0.2.7. Works fine in 0.2.6.
```
webapp remote... | src/webapp/azext_webapp/tunnel.py
<|code_start|># --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------... | src/webapp/azext_webapp/tunnel.py
<|code_start|># --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------... |
Azure Firewalll CLI - https become http
- If the issue is to do with Azure CLI 2.0 in-particular, create an issue here at [Azure/azure-cli](https://github.com/Azure/azure-cli/issues)
### Extension name (the extension in question)
Azure Firewall
### Description of issue (in as much detail as possible)
Creat... | scripts/ci/update_index.py
<|code_start|><|code_end|>
src/azure-firewall/azext_firewall/_validators.py
<|code_start|># --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.tx... | scripts/ci/update_index.py
<|code_start|># --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# ---------------------------... |
add timeout support in image copy command
- If the issue is to do with Azure CLI 2.0 in-particular, create an issue here at [Azure/azure-cli](https://github.com/Azure/azure-cli/issues)
### Extension name (the extension in question)
image-copy-extension
### Description of issue (in as much detail as possible)
sr... | src/image-copy/azext_imagecopy/create_target.py
<|code_start|># --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# ------... | src/image-copy/azext_imagecopy/create_target.py
<|code_start|># --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# ------... |
Extension online docs are not reflecting CLI parameter metadata.
The docs for `az network firewall ip-config create` are mismatched.
Docs: `az network firewall ip-config create` list `--subnet` as a valid command.
CLI:
```
mike@Azure:~$ az network firewall ip-config create -h
This command is from the following exten... | scripts/refdoc/azhelpgen/azhelpgen.py
<|code_start|># --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# ----------------... | scripts/refdoc/azhelpgen/azhelpgen.py
<|code_start|># --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# ----------------... |
Help documentation returns error for "min_profile" and "max_profile"
### Extension name (the extension in question)
storage-preview
### Description of issue (in as much detail as possible)
Returns the following error when prompting for help via `az storage account -h`
```
Help entry fields 'min_profile' and 'm... | src/storage-preview/azext_storage_preview/_help.py
<|code_start|># coding=utf-8
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license inf... | src/storage-preview/azext_storage_preview/_help.py
<|code_start|># coding=utf-8
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license inf... |
min_pro is used in the example of help in express-route-cross-connection
- If the issue is to do with Azure CLI 2.0 in-particular, create an issue here at [Azure/azure-cli](https://github.com/Azure/azure-cli/issues)
### Extension name (the extension in question)
express-route-cross-connection
### Description of ... | src/express-route-cross-connection/azext_expressroutecrossconnection/_help.py
<|code_start|># --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for... | src/express-route-cross-connection/azext_expressroutecrossconnection/_help.py
<|code_start|># --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for... |
min_pro is used in the example of help in express-route-cross-connection
- If the issue is to do with Azure CLI 2.0 in-particular, create an issue here at [Azure/azure-cli](https://github.com/Azure/azure-cli/issues)
### Extension name (the extension in question)
express-route-cross-connection
### Description of ... | src/express-route-cross-connection/azext_expressroutecrossconnection/_help.py
<|code_start|># --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for... | src/express-route-cross-connection/azext_expressroutecrossconnection/_help.py
<|code_start|># --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for... |
az interactive will not work with azure-cli 2.0.62.
(env) D:\GitRepos\github>az interactive
Installing the Interactive extension..
The installed extension 'interactive' is in preview.
The command failed with an unexpected error. Here is the traceback:
cannot import name 'DEFAULTS_SECTION' from 'azure.cli.core._co... | src/image-copy/azext_imagecopy/create_target.py
<|code_start|># --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# ------... | src/image-copy/azext_imagecopy/create_target.py
<|code_start|># --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# ------... |
az interactive` fails with CLI 2.0.64
I am running into an issue with this interactive shell. I successfully updated it before running it and installed the most recent azure-cli version 2.0.64.
azure-cli 2.0.64
Extensions:
interactive 0.4.2
When I ran the az interactive command, the interactive shell shows brie... | src/interactive/azext_interactive/azclishell/__init__.py
<|code_start|># --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.... | src/interactive/azext_interactive/azclishell/__init__.py
<|code_start|># --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.... |
tsv and table outputs won't work with az monitor log-analytics query
- If the issue is to do with Azure CLI 2.0 in-particular, create an issue here at [Azure/azure-cli](https://github.com/Azure/azure-cli/issues)
### Extension name (the extension in question)
az monitor log-analytics query
### Description of issu... | src/log-analytics/azext_loganalytics/_format.py
<|code_start|><|code_end|>
src/log-analytics/azext_loganalytics/commands.py
<|code_start|># --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT Li... | src/log-analytics/azext_loganalytics/_format.py
<|code_start|># --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# ------... |
app-insights az cli extension seems not working properly in AzureChinaCloud (China East 2)
- If the issue is to do with Azure CLI 2.0 in-particular, create an issue here at [Azure/azure-cli](https://github.com/Azure/azure-cli/issues)
### Extension name (the extension in question)
application-insights
### Descrip... | src/application-insights/azext_applicationinsights/_client_factory.py
<|code_start|># --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license... | src/application-insights/azext_applicationinsights/_client_factory.py
<|code_start|># --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license... |
tried and failed, escaping quot. marks
Installed application-insights 0.1.1
tried to run basic queries e.g.
C:\Windows\System32>az monitor app-insights query --app tooling --analytics-query 'exceptions'
but getting an error that does not provide much direction
PathNotFoundError - The requested pat... | src/application-insights/azext_applicationinsights/_help.py
<|code_start|># --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license informati... | src/application-insights/azext_applicationinsights/_help.py
<|code_start|># --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license informati... |
`front-door backend-pool backend remove` negative indexes allowed/mishandled
### Extension name (the extension in question)
front-door
### Description of issue (in as much detail as possible)
Negative integers passed to the `--index` parameter of the `front-door backend-pool backend remove` command are permitt... | src/front-door/azext_front_door/custom.py
<|code_start|># pylint: disable=C0200, R1702
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for lice... | src/front-door/azext_front_door/custom.py
<|code_start|># pylint: disable=C0200, R1702
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for lice... |
Typo in Documentation
### Description of issue (in as much detail as possible)
The delete command's description says Create instead of delete.
az monitor app-insights component delete | Create a new Application Insights resource.
-----
| src/application-insights/azext_applicationinsights/_help.py
<|code_start|># --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license informati... | src/application-insights/azext_applicationinsights/_help.py
<|code_start|># --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license informati... |
az network vhub connection create with --no-wait generates unexpected error
### **This is autogenerated. Please review and update as needed.**
## Describe the bug
**Command Name**
`az network vhub connection create
Extension Name: virtual-wan. Version: 0.1.2.`
**Errors:**
```
'ClientRawResponse' object ... | src/virtual-wan/azext_vwan/__init__.py
<|code_start|># --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# ---------------... | src/virtual-wan/azext_vwan/__init__.py
<|code_start|># --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# ---------------... |
az network front-door routing-rule create --backend-pool is mandatory
Parameter --backend-pool is documented as optional, but it is mandatory: `BadRequest - Property 'FrontdoorEntity.RoutingRules[1].Properties.RouteConfiguration.BackendPool' is required but it was not set` is the error, if argument was not supplied.
-... | src/front-door/azext_front_door/_params.py
<|code_start|># pylint: disable=W0611
# ^^ pylint gives spurious "unused imports" for the models classes
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under ... | src/front-door/azext_front_door/_params.py
<|code_start|># pylint: disable=W0611
# ^^ pylint gives spurious "unused imports" for the models classes
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under ... |
`az interactive` crashes with "cannot import name 'ENV_ADDITIONAL_USER_AGENT'"
## `az interactive` crashes
**Command Name**
`az interactive`
**Errors:**
```
cannot import name 'ENV_ADDITIONAL_USER_AGENT' from 'azure.cli.core.commands.client_factory' (/opt/azure-cli/lib/python3.8/site-packages/azure/cli/core/... | src/interactive/azext_interactive/azclishell/__init__.py
<|code_start|># --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.... | src/interactive/azext_interactive/azclishell/__init__.py
<|code_start|># --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.... |
timeseriesinsights - When creating a new Standard Environment, data-retention-time is not properly documented
- If the issue is to do with Azure CLI 2.0 in-particular, create an issue here at [Azure/azure-cli](https://github.com/Azure/azure-cli/issues)
### Extension name (the extension in question)
timeseriesinsigh... | src/timeseriesinsights/azext_timeseriesinsights/_help.py
<|code_start|># coding=utf-8
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for licen... | src/timeseriesinsights/azext_timeseriesinsights/_help.py
<|code_start|># coding=utf-8
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for licen... |
AKS Private-Cluster fails with Nonetype stackTrace via Jumpbox
### Extension name (the extension in question)
* `aks-preview`
### Description of issue (in as much detail as possible)
_Before I detail_: This is placeholder issue for transparency, plus to log and correctly identify the `aks private-cluster` be... | src/aks-preview/azext_aks_preview/_consts.py
<|code_start|># --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# ---------... | src/aks-preview/azext_aks_preview/_consts.py
<|code_start|># --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# ---------... |
timeseriesinsights - --timestamp-property-name should be made optional
- If the issue is to do with Azure CLI 2.0 in-particular, create an issue here at [Azure/azure-cli](https://github.com/Azure/azure-cli/issues)
### Extension name (the extension in question)
timeseriesinsights
### Description of issue (in as... | src/timeseriesinsights/azext_timeseriesinsights/custom.py
<|code_start|># --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information... | src/timeseriesinsights/azext_timeseriesinsights/custom.py
<|code_start|># --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information... |
az monitor app-insights query Execute a simple query over past 3.5 days.
## Describe the bug
Trying to query Application Insights via the example provided via the [az monitor app-insights query](https://docs.microsoft.com/en-us/cli/azure/ext/application-insights/monitor/app-insights?view=azure-cli-latest#ext-applicati... | src/application-insights/azext_applicationinsights/custom.py
<|code_start|># --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license informat... | src/application-insights/azext_applicationinsights/custom.py
<|code_start|># --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license informat... |
Error firewall network-rule create when trying to create a rule in a Firewall Manager
### Describe the bug
This happens when trying to add rule to a firewall manager resource:
https://docs.microsoft.com/en-us/azure/firewall-manager/overview
**Command Name**
`az network firewall network-rule create
Extension Na... | src/azure-firewall/azext_firewall/custom.py
<|code_start|># --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# ----------... | src/azure-firewall/azext_firewall/custom.py
<|code_start|># --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# ----------... |
Set retention time in application-insights
### Extension name (the extension in question)
application-insights
### Description of issue (in as much detail as possible)
There does not seem to be a flag or command to change the default 90 days retention period to something else. Currently we have to fallback to the ... | src/application-insights/azext_applicationinsights/_help.py
<|code_start|># --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license informati... | src/application-insights/azext_applicationinsights/_help.py
<|code_start|># --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license informati... |
Azure Firewall: add threat intel mode
**Extension name (the extension in question)**
azure-firewall
**Resource Provider**
`Microsoft.Network`
**Description of Feature or Work Requested**
Add parameter to set mode of Threat Intelligence (three modes: `Alert`, `Deny`, `Off`)
**Minimum API Version Required**
... | src/azure-firewall/azext_firewall/_params.py
<|code_start|># --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# ---------... | src/azure-firewall/azext_firewall/_params.py
<|code_start|># --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# ---------... |
az blueprint assignment create - fails
### **This is autogenerated. Please review and update as needed.**
## Describe the bug
**Command Name**
`az blueprint assignment create
Extension Name: blueprint. Version: 0.1.0.`
**Errors:**
```
'artifact_name'
Traceback (most recent call last):
python3.6/site-pa... | src/blueprint/azext_blueprint/custom.py
<|code_start|># --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------... | src/blueprint/azext_blueprint/custom.py
<|code_start|># --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------... |
Front Door frontend-endpoint session-affinity-enabled param not working, and inconsistent accepted values compared to other params
Extension: Front Door
Setting **--session-affinity-enabled** param with "az network front-door frontend-endpoint" gives the following error:
BadRequest - Property FrontdoorEntity.Fronte... | src/front-door/azext_front_door/_params.py
<|code_start|># pylint: disable=W0611
# ^^ pylint gives spurious "unused imports" for the models classes
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under ... | src/front-door/azext_front_door/_params.py
<|code_start|># pylint: disable=W0611
# ^^ pylint gives spurious "unused imports" for the models classes
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under ... |
Application Insights daily data cap cannot be set to fractional number via CLI
## Describe the bug
The daily data cap in Application Insights can be set to a non-integer number (eg. 0.1). The `az monitor app-insights component billing update` command only allows integer numbers.
When using `az monitor app-insi... | src/application-insights/azext_applicationinsights/_params.py
<|code_start|># --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license informa... | src/application-insights/azext_applicationinsights/_params.py
<|code_start|># --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license informa... |
az cli application-insights api-key creates with wrong permissions
### Extension name: **application-insights**
### Description of issue
The default behavior of creating an api-key with the az cli application-insights extension is that it will add full permissions if None is supplied.
If i would like to create ... | src/application-insights/azext_applicationinsights/_help.py
<|code_start|># --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license informati... | src/application-insights/azext_applicationinsights/_help.py
<|code_start|># --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license informati... |
Copied example has extra spaces
When I copy the az hpc-cache create example, the result has line breaks which turn into spaces when I paste it into another text document. There are spaces/line breaks in "re source_group" and "sub nets"
az hpc-cache create --resource-group "scgroup" --name "sc1" --location "eastus"... | src/hpc-cache/azext_hpc_cache/_help.py
<|code_start|># coding=utf-8
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# ... | src/hpc-cache/azext_hpc_cache/_help.py
<|code_start|># coding=utf-8
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# ... |
[AKS] az aks get-upgrades --output table fails on extensions
- If the issue is to do with Azure CLI 2.0 in-particular, create an issue here at [Azure/azure-cli](https://github.com/Azure/azure-cli/issues)
### Extension name (the extension in question)
aks-preview
### Description of issue (in as much detail as pos... | src/aks-preview/azext_aks_preview/_format.py
<|code_start|># --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# ---------... | src/aks-preview/azext_aks_preview/_format.py
<|code_start|># --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# ---------... |
"az network firewall network-rule delete" note
Hi,
If there is only one rule in the collection then this command won't let you delete the rule... because then the collection will have no rules, which seems to be a requirement.
**az network firewall network-rule delete**
`az : AzureFirewallRuleCollection /subs... | src/azure-firewall/azext_firewall/_help.py
<|code_start|># --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# -----------... | src/azure-firewall/azext_firewall/_help.py
<|code_start|># --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# -----------... |
`--spot_max_price can only include up to 5 decimal places`
- If the issue is to do with Azure CLI 2.0 in-particular, create an issue here at [Azure/azure-cli](https://github.com/Azure/azure-cli/issues)
### Extension name (the extension in question)
aks-preview
### Description of issue (in as much detail as possi... | src/aks-preview/azext_aks_preview/_validators.py
<|code_start|># --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# -----... | src/aks-preview/azext_aks_preview/_validators.py
<|code_start|># --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# -----... |
Example for sharing a blob folder.
[Enter feedback here]
Could we include an example on how to share a blob folder? Suppose within a container i have a file c under the path a/b/c and also a folder c under the path a/b/c, how do i share folder c instead of file c?
---
#### Document Details
⚠ *Do not edit this... | src/datashare/azext_datashare/manual/_help.py
<|code_start|># --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------... | src/datashare/azext_datashare/manual/_help.py
<|code_start|># --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------... |
Azure TSI Create issue - 'NoneType' object is not iterable
## Create TSI issue - https://docs.microsoft.com/en-us/cli/azure/ext/timeseriesinsights/timeseriesinsights/environment/standard?view=azure-cli-latest#ext-timeseriesinsights-az-timeseriesinsights-environment-standard-create
**Command Name**
`az timeseriesins... | src/timeseriesinsights/azext_timeseriesinsights/custom.py
<|code_start|># --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information... | src/timeseriesinsights/azext_timeseriesinsights/custom.py
<|code_start|># --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information... |
Azure Blueprint Artifact Update
Hi,
Going through the Azure CLI for using the Blueprint module, I see that you can add a --depends-on to a specific artifact. However, the CLI doesn't seem to support removing this property or setting it to be empty: []. When you try to set the artifact's "dependsOn" property to empty... | src/blueprint/azext_blueprint/_params.py
<|code_start|># --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# -------------... | src/blueprint/azext_blueprint/_params.py
<|code_start|># --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# -------------... |
Is it possible to query Log Analytics via the az cli with a saved query?
I can’t tell from the documentation, is it possible to run a saved Log Analytics Query from this CLI command?
If not, a useful enhancement would be to enable the use a saved query in addition to the ability to execute queries in-line. The ... | src/log-analytics/azext_loganalytics/_help.py
<|code_start|># --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------... | src/log-analytics/azext_loganalytics/_help.py
<|code_start|># --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------... |
The parameter for --administration-members is incorrectly stated as optional
For the function 'az powerbi embedded-capacity create', the parameter for --administration-members is incorrectly stated as optional.
If you leave this parameter out, it will give this error:
**BadRequestError: At least one capacity adminis... | src/powerbidedicated/azext_powerbidedicated/_params.py
<|code_start|># --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
#... | src/powerbidedicated/azext_powerbidedicated/_params.py
<|code_start|># --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
#... |
Scheduled-query create example throws BadRequest error
I tried playing around the scheduled-query cli commands and kept running into issues parsing the LogAnalytics query we were attempting to use in the condition. So, I simply tried using the condition provided in the examples and it had similar issues.
```
C:\Use... | src/scheduled-query/azext_scheduled_query/_help.py
<|code_start|># coding=utf-8
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license inf... | src/scheduled-query/azext_scheduled_query/_help.py
<|code_start|># coding=utf-8
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license inf... |
vmware 2.0.0 does not work in azure-cli:2.7.0
- If the issue is to do with Azure CLI 2.0 in-particular, create an issue here at [Azure/azure-cli](https://github.com/Azure/azure-cli/issues)
### Extension name (the extension in question)
vmware
### Description of issue (in as much detail as possible)
The vmware ... | src/vmware/setup.py
<|code_start|>#!/usr/bin/env python
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# -----------... | src/vmware/setup.py
<|code_start|>#!/usr/bin/env python
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# -----------... |
az spring-cloud app binding mysql add
### **This is autogenerated. Please review and update as needed.**
## Describe the bug
**Command Name**
`az spring-cloud app binding mysql add
Extension Name: spring-cloud. Version: 2.2.0.`
**Errors:**
```
'BindingsOperations' object has no attribute 'apps'
Traceba... | src/spring-cloud/azext_spring_cloud/custom.py
<|code_start|># --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------... | src/spring-cloud/azext_spring_cloud/custom.py
<|code_start|># --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------... |
Transition to GA: costmanagement
Command module `costmanagement` has been released for a long time and is using stable sdk version `2019-11-01`.
Please check [Extension GA guidelines](https://github.com/Azure/azure-cli/blob/dev/doc/onboarding_guide.md#preview-extension-to-ga-extension) and remove `experimental` tag ... | src/costmanagement/azext_costmanagement/manual/commands.py
<|code_start|># --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license informatio... | src/costmanagement/azext_costmanagement/manual/commands.py
<|code_start|># --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license informatio... |
Transition to GA: databox
Command module `databox` has been released for a long time and is using stable sdk version `2019-09-01`.
Please check [Extension GA guidelines](https://github.com/Azure/azure-cli/blob/dev/doc/onboarding_guide.md#preview-extension-to-ga-extension) and remove `experimental` tag if necessary.
| src/databox/azext_databox/commands.py
<|code_start|># --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# ----------------... | src/databox/azext_databox/commands.py
<|code_start|># --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# ----------------... |
Transition to GA: peering
Command module `peering` has been released for a long time and is using stable sdk version `2020-04-01`.
Please check [Extension GA guidelines](https://github.com/Azure/azure-cli/blob/dev/doc/onboarding_guide.md#preview-extension-to-ga-extension) and remove `experimental` tag if necessary.
| src/peering/azext_peering/generated/commands.py
<|code_start|># --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Mi... | src/peering/azext_peering/generated/commands.py
<|code_start|># --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Mi... |
Transition to GA: storagesync
Command module `storagesync` has been released for a long time and is using stable sdk version `2019-06-01`.
Please check [Extension GA guidelines](https://github.com/Azure/azure-cli/blob/dev/doc/onboarding_guide.md#preview-extension-to-ga-extension) and remove `experimental` tag if nec... | src/storagesync/azext_storagesync/commands.py
<|code_start|># --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------... | src/storagesync/azext_storagesync/commands.py
<|code_start|># --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------... |
db-up does not return correct PostgreSQL host for Azure Government
- If the issue is to do with Azure CLI 2.0 in-particular, create an issue here at [Azure/azure-cli](https://github.com/Azure/azure-cli/issues)
### Extension name (the extension in question)
db-up
### Description of issue (in as much detail as p... | src/db-up/azext_db_up/custom.py
<|code_start|># --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# ----------------------... | src/db-up/azext_db_up/custom.py
<|code_start|># --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# ----------------------... |
Identity is empty after creating Azure Datafactory with Azure DevOps pipeline
- If the issue is to do with Azure CLI 2.0 in-particular, create an issue here at [Azure/azure-cli](https://github.com/Azure/azure-cli/issues)
### Extension name (the extension in question)
datafactory 0.2.0
### ... | src/datafactory/azext_datafactory/manual/custom.py
<|code_start|><|code_end|>
src/datafactory/azext_datafactory/manual/version.py
<|code_start|># --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See L... | src/datafactory/azext_datafactory/manual/custom.py
<|code_start|># --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by... |
storage blob directory download throwing exception "Could not deserialize key data. The data may be in an incorrect format, or it may be encrypted with an unsupported algorithm"
### Extension name (the extension in question)
Storage Preview, v0.7.3
### Description of the issue (in as much detail as possible)
stora... | src/storage-preview/azext_storage_preview/azcopy/util.py
<|code_start|># --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.... | src/storage-preview/azext_storage_preview/azcopy/util.py
<|code_start|># --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.... |
az postgres up does not create the resource group
## Describe the bug
**Tutorial link:** [Deploy a Django web app with PostgreSQL in Azure App Service](https://docs.microsoft.com/en-us/azure/app-service/tutorial-python-postgresql-app?tabs=cmd%2Cclone)
It is expected that the `az postgres up` command creates the res... | src/db-up/azext_db_up/_validators.py
<|code_start|># --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# -----------------... | src/db-up/azext_db_up/_validators.py
<|code_start|># --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# -----------------... |
unexpected keyword argument 'account_key'
## Describe the bug
I've used this command in the past to get a list of VHD images in my storage:
**Command Name**
`az storage blob list
Extension Name: storage-blob-preview. Version: 0.5.0.`
**Errors:**
```
The command failed with an unexpected error. Here is the... | src/storage-blob-preview/azext_storage_blob_preview/_client_factory.py
<|code_start|># --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for licens... | src/storage-blob-preview/azext_storage_blob_preview/_client_factory.py
<|code_start|># --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for licens... |
az postgres up fails unpleasantly when database name contains dash
- If the issue is to do with Azure CLI 2.0 in-particular, create an issue here at [Azure/azure-cli](https://github.com/Azure/azure-cli/issues)
### Extension name (the extension in question)
db-up
### Description of issue (in as much detail as p... | src/db-up/azext_db_up/custom.py
<|code_start|># --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# ----------------------... | src/db-up/azext_db_up/custom.py
<|code_start|># --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# ----------------------... |
ERROR: Could not grant Managed Identity Operator permission for cluster
### Extension name (the extension in question)
aks-preview
## Bug description
While running `az aks pod-identity --resource group $AKS_RG --cluster-name $AKS_NAME --namespace $NS --name $name --identity-resource-id /subscriptions/$SUBID/resour... | src/aks-preview/azext_aks_preview/custom.py
<|code_start|># pylint: disable=too-many-lines
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for ... | src/aks-preview/azext_aks_preview/custom.py
<|code_start|># pylint: disable=too-many-lines
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for ... |
Functionapp extension not working after CLI update
### Extension name (the extension in question)
functionapp
### Description of issue (in as much detail as possible)
After updating az CLI to 2.34.1, `az functionapp devops-pipeline create` fails with
```shell
$ az functionapp devops-pipeline create
The co... | src/functionapp/azext_functionapp/azure_devops_build_interactive.py
<|code_start|># --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license i... | src/functionapp/azext_functionapp/azure_devops_build_interactive.py
<|code_start|># --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license i... |
az monitor app-insights query got error ApplicationNotFoundError: The application could not be found
- If the issue is to do with Azure CLI 2.0 in-particular, create an issue here at [Azure/azure-cli](https://github.com/Azure/azure-cli/issues)
### Extension name (the extension in question)
**In azure china cloud:**... | src/application-insights/azext_applicationinsights/_client_factory.py
<|code_start|># --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license... | src/application-insights/azext_applicationinsights/_client_factory.py
<|code_start|># --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license... |
`az webpubsub client start` errors with `TypeError: As of 3.10, the *loop* parameter was removed from Lock() since it is no longer necessary`
- If the issue is to do with Azure CLI 2.0 in-particular, create an issue here at [Azure/azure-cli](https://github.com/Azure/azure-cli/issues)
### Related command
```consol... | src/webpubsub/setup.py
<|code_start|>#!/usr/bin/env python
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------... | src/webpubsub/setup.py
<|code_start|>#!/usr/bin/env python
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------... |
blueprint: Import parses unwanted hidden files
### **This is autogenerated. Please review and update as needed.**
## Describe the bug
`blueprint` import will import all files in the `artifacts` folder including hidden Linux files and might raise an `UnicodeDecodeError` (eg. for Vim swap files which often include no... | src/blueprint/azext_blueprint/custom.py
<|code_start|># --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------... | src/blueprint/azext_blueprint/custom.py
<|code_start|># --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------... |
Error on adding NAT collection to the existing firewall policy
### **This is autogenerated. Please review and update as needed.**
## Describe the bug
**Command Name**
`az network firewall policy rule-collection-group collection add-nat-collection
Extension Name: azure-firewall. Version: 0.12.0.`
**Errors:**... | src/azure-firewall/azext_firewall/custom.py
<|code_start|># --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# ----------... | src/azure-firewall/azext_firewall/custom.py
<|code_start|># --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# ----------... |
Error when querying for current attestation policy
## Describe the bug
**Command Name**
`az attestation policy show
Extension Name: attestation. Version: 0.2.0.`
**Errors:**
```
The command failed with an unexpected error. Here is the traceback:
It is required that you pass in a value for the "algorithms" ... | src/attestation/azext_attestation/manual/custom.py
<|code_start|># --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by... | src/attestation/azext_attestation/manual/custom.py
<|code_start|># --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by... |
[containerapp] az containerapp update with --max-replicas 0 returns no error
`az containerapp update -n ContainerAppName -g ResourceGroup --min-replicas 0 --max-replicas 0` finishes without throwing any error, however scaling configuration is not updated as max replicas cannot be zero.
```
$ az version
{
"azure... | src/containerapp/azext_containerapp/custom.py
<|code_start|># --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------... | src/containerapp/azext_containerapp/custom.py
<|code_start|># --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------... |
front-door extension can not find existing front door resources
### Related command
<!--- Please provide the related command with az {command} if you can, so that we can quickly route to the related team for help. --->
```
az network front-door list
basically all front-door commands
```
### Extension name (the ex... | src/front-door/azext_front_door/_help.py
<|code_start|># --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# -------------... | src/front-door/azext_front_door/_help.py
<|code_start|># --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# -------------... |
az image copy failed with error
### **This is autogenerated. Please review and update as needed.**
## Describe the bug
**Command Name**
`az image copy
Extension Name: image-copy-extension. Version: 0.2.9.`
**Errors:**
```
The command failed with an unexpected error. Here is the traceback:
expected str, by... | src/image-copy/azext_imagecopy/create_target.py
<|code_start|># --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# ------... | src/image-copy/azext_imagecopy/create_target.py
<|code_start|># --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# ------... |
[Reservations] Creating Reservations commands in azue-cli-extensions
---
This checklist is used to make sure that common guidelines for a pull request are followed.
### Related command
<!--- Please provide the related command with az {command} if you can, so that we can quickly route to the related person to rev... | src/reservation/azext_reservation/vendored_sdks/__init__.py
<|code_start|><|code_end|>
src/reservation/setup.py
<|code_start|>#!/usr/bin/env python
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under... | src/reservation/azext_reservation/vendored_sdks/__init__.py
<|code_start|># -----------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
# -------... |
These extensions are not compatible with latest azure-cli
In https://github.com/Azure/azure-cli/pull/24582, I found the below extensions have dependency conflict with azure-cli.
Due to the cli load policy, azure-cli's dependency loads first. These extensions have already used the **incompatible** dependency in latest ... | src/serial-console/azext_serialconsole/custom.py
<|code_start|># --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# -----... | src/serial-console/azext_serialconsole/custom.py
<|code_start|># --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# -----... |
Setting registry for container app results in python error
After creating Container App we now get a python error when trying to set the registry with a system assigned identity.
We have been using the same script for a few months, but we are suddenly getting this error with any changes to this part of our deploy scr... | src/containerapp/azext_containerapp/_utils.py
<|code_start|># --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------... | src/containerapp/azext_containerapp/_utils.py
<|code_start|># --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------... |
Azcli fails to create FrontDoor WAF Policy
## Describe the bug
**Command Name**
`az network front-door waf-policy create
Extension Name: front-door. Version: 1.0.17.`
az-cli fails to create the azure front-door WAF policy with the latest version.
**Errors:**
```
(BadRequest) WebApplicationFirewallPolicy vali... | src/front-door/azext_front_door/_params.py
<|code_start|># pylint: disable=W0611
# ^^ pylint gives spurious "unused imports" for the models classes
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under ... | src/front-door/azext_front_door/_params.py
<|code_start|># pylint: disable=W0611
# ^^ pylint gives spurious "unused imports" for the models classes
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under ... |
Image Copy '--target-subscription' Argument Ignored
### Related command
<!--- Please provide the related command with az {command} if you can, so that we can quickly route to the related team for help. --->
```bash
az image copy --source-resource-group <source_rg_name> \
--source-object-name <source_image_n... | src/image-copy/azext_imagecopy/custom.py
<|code_start|># --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# -------------... | src/image-copy/azext_imagecopy/custom.py
<|code_start|># --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# -------------... |
containerapp – error running az containerapp up with no Dockerfile
- If the issue is to do with Azure CLI 2.0 in-particular, create an issue here at [Azure/azure-cli](https://github.com/Azure/azure-cli/issues)
### Related command
<!--- Please provide the related command with az {command} if you can, so that we can ... | src/containerapp/azext_containerapp/_up_utils.py
<|code_start|># --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# -----... | src/containerapp/azext_containerapp/_up_utils.py
<|code_start|># --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# -----... |
[CustomScript] error message misleading
if you leave the `commandToExecute` field empty in configuration, you get an error like:
```
Enable failed: Failed with error: CommandToExecute is empty or invalid, Traceback (most recent call last):
File "/var/lib/waagent/Microsoft.OSTCExtensions.CustomScriptForLinux-1.5.2.0/... | CustomScript/customscript.py
<|code_start|>#!/usr/bin/env python
#
#CustomScript extension
#
# Copyright 2014 Microsoft Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# htt... | CustomScript/customscript.py
<|code_start|>#!/usr/bin/env python
#
#CustomScript extension
#
# Copyright 2014 Microsoft Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# htt... |
[LAD] Upgrading extension on Ubuntu 15.10 & 16.04 fails to restart the agent
We've had this latent bug from day 1 that on any systemd-enabled distros upgrading the LAD extension wouldn't restart the service.
This bug previously affected Ubuntu 15.10 only, and probably because it's not an LTS version and maybe not used... | Diagnostic/diagnostic.py
<|code_start|>#!/usr/bin/env python
#
# Azure Linux extension
#
# Linux Azure Diagnostic Extension (see below for version)
# Copyright (c) Microsoft Corporation
# All rights reserved.
# MIT License
# Permission is hereby granted, free of charge, to any person obtaining a copy of this softw... | Diagnostic/diagnostic.py
<|code_start|>#!/usr/bin/env python
#
# Azure Linux extension
#
# Linux Azure Diagnostic Extension (Current version is specified in manifest.xml)
# Copyright (c) Microsoft Corporation
# All rights reserved.
# MIT License
# Permission is hereby granted, free of charge, to any person obtaini... |
[LAD] Use 'storageAccountEndPoint' not 'endpoint'
On a VM deployed on MoonMake using portal on 8/15/2016 using 2.3.9007 LAD, LAD couldn't find the proper endpoint of storage. It turned out that LAD code is searching key = 'endpoint', while the actual key is 'storageAccountEndPoint'.
{"storageAccountName":"xxx","stora... | Diagnostic/diagnostic.py
<|code_start|>#!/usr/bin/env python
#
# Azure Linux extension
#
# Linux Azure Diagnostic Extension (Current version is specified in manifest.xml)
# Copyright (c) Microsoft Corporation
# All rights reserved.
# MIT License
# Permission is hereby granted, free of charge, to any person obtaini... | Diagnostic/diagnostic.py
<|code_start|>#!/usr/bin/env python
#
# Azure Linux extension
#
# Linux Azure Diagnostic Extension (Current version is specified in manifest.xml)
# Copyright (c) Microsoft Corporation
# All rights reserved.
# MIT License
# Permission is hereby granted, free of charge, to any person obtaini... |
add/restore support for account expiration in VMAccess extension
For some reason account expiration support not added or removed from VMAccess extension.
vmaccess.py
```
error_string = waagent.MyDistro.CreateAccount(
user_name, user_pass, None, None)
```
waagent
```
def CreateAccount(self,user, pass... | VMAccess/vmaccess.py
<|code_start|>#!/usr/bin/env python
#
# VMAccess extension
#
# Copyright 2014 Microsoft Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apa... | VMAccess/vmaccess.py
<|code_start|>#!/usr/bin/env python
#
# VMAccess extension
#
# Copyright 2014 Microsoft Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apa... |
Deprecated value being used in the syslog template
The last parameter in the config file ~ is deprecated and it should be replaced with the word stop, here is an example of that the config file should look like after the change:
$ModLoad omazuremdslegacy.so
$template fmt, "\"syslog\",%syslogfacility-text:::csv%,\"%sys... | Diagnostic/diagnostic.py
<|code_start|>#!/usr/bin/env python
#
# Azure Linux extension
#
# Linux Azure Diagnostic Extension (Current version is specified in manifest.xml)
# Copyright (c) Microsoft Corporation
# All rights reserved.
# MIT License
# Permission is hereby granted, free of charge, to any person obtaini... | Diagnostic/diagnostic.py
<|code_start|>#!/usr/bin/env python
#
# Azure Linux extension
#
# Linux Azure Diagnostic Extension (Current version is specified in manifest.xml)
# Copyright (c) Microsoft Corporation
# All rights reserved.
# MIT License
# Permission is hereby granted, free of charge, to any person obtaini... |
OSPatching - start time 00h error
Looks like the OSPatchingForLinux extension reports an error if you pass in a `StartTime` parameter with anything earlier than 01:00. Start times of 00:00, 00:01, 00:15 all failed, but 01:00 worked fine.
Extension version 2.3.
Repro
```
$PatchSettings = @{
"disabled" = $fa... | OSPatching/patch/AbstractPatching.py
<|code_start|>#!/usr/bin/python
#
# AbstractPatching is the base patching class of all the linux distros
#
# Copyright 2014 Microsoft Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# ... | OSPatching/patch/AbstractPatching.py
<|code_start|>#!/usr/bin/python
#
# AbstractPatching is the base patching class of all the linux distros
#
# Copyright 2014 Microsoft Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# ... |
LAD 3.0 returns unhelpful error if storage SAS token not passed in protected settings
If storageAccountSasToken is not specified in the protected settings, or if it's an empty string, LAD 3.0 returns a singularly unhelpful error message:
```
2017/09/05 21:52:14 [Microsoft.Azure.Diagnostics.LinuxDiagnostic-3.0.109] In... | Diagnostic/Utils/lad_ext_settings.py
<|code_start|>#!/usr/bin/env python
#
# Azure Linux extension
#
# Linux Azure Diagnostic Extension (Current version is specified in manifest.xml)
# Copyright (c) Microsoft Corporation
# All rights reserved.
# MIT License
# Permission is hereby granted, free of charge, to any person ... | Diagnostic/Utils/lad_ext_settings.py
<|code_start|>#!/usr/bin/env python
#
# Azure Linux extension
#
# Linux Azure Diagnostic Extension (Current version is specified in manifest.xml)
# Copyright (c) Microsoft Corporation
# All rights reserved.
# MIT License
# Permission is hereby granted, free of charge, to any person ... |
Install LAD without storage account sink
Is there a way to install the Linux diagnostics extension without providing storage account credentials? We are only interested in the Event Hub sink.
Without the storage account credentials, the extension fails to start.
| Diagnostic/Utils/lad_logging_config.py
<|code_start|>#!/usr/bin/env python
#
# Azure Linux extension
#
# Copyright (c) Microsoft Corporation
# All rights reserved.
# MIT License
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
# documentation files (the ""So... | Diagnostic/Utils/lad_logging_config.py
<|code_start|>#!/usr/bin/env python
#
# Azure Linux extension
#
# Copyright (c) Microsoft Corporation
# All rights reserved.
# MIT License
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
# documentation files (the ""So... |
Need a better error message if LAD config is invalid
I'm getting a weird error when trying to deploy the Diagnostics extension via an ARM template:
```json
Deployment failed. Correlation ID: b38c8bef-1aef-49fc-b57d-55dfb8490811. {
"status": "Failed",
"error": {
"code": "ResourceDeploymentFailure",
"... | Diagnostic/lad_config_all.py
<|code_start|>#!/usr/bin/env python
#
# Azure Linux extension
#
# Linux Azure Diagnostic Extension (Current version is specified in manifest.xml)
# Copyright (c) Microsoft Corporation
# All rights reserved.
# MIT License
# Permission is hereby granted, free of charge, to any person obtainin... | Diagnostic/lad_config_all.py
<|code_start|>#!/usr/bin/env python
#
# Azure Linux extension
#
# Linux Azure Diagnostic Extension (Current version is specified in manifest.xml)
# Copyright (c) Microsoft Corporation
# All rights reserved.
# MIT License
# Permission is hereby granted, free of charge, to any person obtainin... |
Azure Monitor Agent Linux failing to install 1.27.2
A recent change created an issue with the agent on linux. This should be:
`if "auth" in public_settings.get("proxy") and public_settings.get("proxy").get("auth") == True:` and not `if "auth" in public_settings.get("proxy") and public_settings.get("proxy").get("auth")... | AzureMonitorAgent/agent.py
<|code_start|>#!/usr/bin/env python
#
# AzureMonitoringLinuxAgent Extension
#
# Copyright 2021 Microsoft Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at... | AzureMonitorAgent/agent.py
<|code_start|>#!/usr/bin/env python
#
# AzureMonitoringLinuxAgent Extension
#
# Copyright 2021 Microsoft Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at... |
OpenSSL not found on OS X 10.8
I tried to install OpenSSL via brew, but no effect. I exported needed PATH for it.
OpenSSL not found on OS X 10.8
I tried to install OpenSSL via brew, but no effect. I exported needed PATH for it.
| src/pyelliptic/openssl.py
<|code_start|>#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (C) 2011 Yann GUIBET <yannguibet@gmail.com>
# See LICENSE for details.
#
# Software slightly changed by Jonathan Warren <bitmessage at-symbol jonwarren.org>
import sys
import ctypes
OpenSSL = None
class CipherName:... | src/pyelliptic/openssl.py
<|code_start|>#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (C) 2011 Yann GUIBET <yannguibet@gmail.com>
# See LICENSE for details.
#
# Software slightly changed by Jonathan Warren <bitmessage at-symbol jonwarren.org>
import sys
import ctypes
OpenSSL = None
class CipherName:... |
Don't create keyfile with insecure permissions
Issue #258 is similar, but slightly different.
Even with the fix from pull/#262, there is a (milder) vulnerability: on some systems a malicious process can get a file handle during the short time that keys.dat remains in a readable state. If the user creates a key while t... | src/helper_bootstrap.py
<|code_start|>import shared
import socket
import defaultKnownNodes
import pickle
import time
def knownNodes():
try:
# We shouldn't have to use the shared.knownNodesLock because this had
# better be the only thread accessing knownNodes right now.
pickleFile = open(sha... | src/helper_bootstrap.py
<|code_start|>import shared
import socket
import defaultKnownNodes
import pickle
import time
def knownNodes():
try:
# We shouldn't have to use the shared.knownNodesLock because this had
# better be the only thread accessing knownNodes right now.
pickleFile = open(sha... |
When joining a chan, [chan] [chan] is added
This is a minor issue, but...
Then I join a chan, it's name is added to the identities as "[chan] channame". But when it's added to the addressbook, it has label "[chan] [chan] channame". The label can be changed manually, but it's annoying :)
| src/bitmessageqt/__init__.py
<|code_start|>try:
import locale
except:
pass
withMessagingMenu = False
try:
from gi.repository import MessagingMenu
from gi.repository import Notify
withMessagingMenu = True
except ImportError:
MessagingMenu = None
from addresses import *
import shared
from bitmes... | src/bitmessageqt/__init__.py
<|code_start|>try:
import locale
except:
pass
withMessagingMenu = False
try:
from gi.repository import MessagingMenu
from gi.repository import Notify
withMessagingMenu = True
except ImportError:
MessagingMenu = None
from addresses import *
import shared
from bitmes... |
Status fields can be changed
Withing the sent tab, the GUI allows to change the values of all the fields when doubleclicked.

| src/bitmessageqt/bitmessageui.py
<|code_start|># -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'bitmessageui.ui'
#
# Created: Mon Aug 12 00:08:20 2013
# by: PyQt4 UI code generator 4.10.2
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore, QtGui
try:
... | src/bitmessageqt/bitmessageui.py
<|code_start|># -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'bitmessageui.ui'
#
# Created: Thu Aug 15 14:19:52 2013
# by: PyQt4 UI code generator 4.10
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore, QtGui
try:
... |
Error when trying to open settings dialog
OS: Linux Mint 15 with Cinnamon 32-bit fallback mode
Bitmessage Version: PyBitmessage commit 0f5448
After fetching and merging up to commit 0f5448 (the latest commit as of now) I get this error:
Traceback (most recent call last):
File "/home/amos/bitmessage/PyBitmessage/src/... | src/bitmessageqt/settings.py
<|code_start|># -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'settings.ui'
#
# Created: Tue Aug 27 22:23:38 2013
# by: PyQt4 UI code generator 4.10.2
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore, QtGui
try:
_from... | src/bitmessageqt/settings.py
<|code_start|># -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'settings.ui'
#
# Created: Mon Sep 02 16:49:54 2013
# by: PyQt4 UI code generator 4.10.2
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore, QtGui
try:
_from... |
'Major error occurred when trying to execute a SQL statement' when clicking on inbox message
Just checkouted the latest version eff4edb8e85c5534a2e573cab97fe96242a8bcf2
subscribed to some channel.
I've got some new messages from timeserver (BM-BcbRqcFFSQUUmXFKsPJgVQPSiFA3Xash)
when i click on message, app crashes.
201... | src/bitmessageqt/__init__.py
<|code_start|>try:
import locale
except:
pass
withMessagingMenu = False
try:
from gi.repository import MessagingMenu
from gi.repository import Notify
withMessagingMenu = True
except ImportError:
MessagingMenu = None
from addresses import *
import shared
from bitmes... | src/bitmessageqt/__init__.py
<|code_start|>try:
import locale
except:
pass
withMessagingMenu = False
try:
from gi.repository import MessagingMenu
from gi.repository import Notify
withMessagingMenu = True
except ImportError:
MessagingMenu = None
from addresses import *
import shared
from bitmes... |
Small bug in tr.py
In tr.py is line 24 an os.exit() command.
But os is not imported in this file!
| src/tr.py
<|code_start|>import shared
# This is used so that the translateText function can be used when we are in daemon mode and not using any QT functions.
class translateClass:
def __init__(self, context, text):
self.context = context
self.text = text
def arg(self,argument):
if '%' ... | src/tr.py
<|code_start|>import shared
import os
# This is used so that the translateText function can be used when we are in daemon mode and not using any QT functions.
class translateClass:
def __init__(self, context, text):
self.context = context
self.text = text
def arg(self,argument):
... |
Inbox messages are not being displayed
(on v.0.4.1 Ubuntu 12.10)
I get the following error msg in the console when a new message gets into my Inbox:
Traceback (most recent call last):
File "/home/default2/PyBitmessage/src/bitmessageqt/**init**.py", line 1797, in displayNewInboxMessage
self.notifierShow(unicode(_... | src/bitmessageqt/__init__.py
<|code_start|>try:
import locale
except:
pass
withMessagingMenu = False
try:
from gi.repository import MessagingMenu
from gi.repository import Notify
withMessagingMenu = True
except ImportError:
MessagingMenu = None
from addresses import *
import shared
from bitmes... | src/bitmessageqt/__init__.py
<|code_start|>try:
import locale
except:
pass
withMessagingMenu = False
try:
from gi.repository import MessagingMenu
from gi.repository import Notify
withMessagingMenu = True
except ImportError:
MessagingMenu = None
from addresses import *
import shared
from bitmes... |
duplicate lines
in defaultKnownNodes.py lines 16 and 21
| src/defaultKnownNodes.py
<|code_start|>import pickle
import socket
from struct import *
import time
import random
import sys
from time import strftime, localtime
import shared
def createDefaultKnownNodes(appdata):
############## Stream 1 ################
stream1 = {}
stream1[shared.Peer('98.233.84.134', 8... | src/defaultKnownNodes.py
<|code_start|>import pickle
import socket
from struct import *
import time
import random
import sys
from time import strftime, localtime
import shared
def createDefaultKnownNodes(appdata):
############## Stream 1 ################
stream1 = {}
stream1[shared.Peer('176.31.246.114', ... |
Duplicates problem: duplicate messages arrive and stay until the client shutdown
I noticed that when someone answers my message, there is high chance that after a while this same response will come again for no apparent reason. Delay of duplicate varies from 20 min to 2-3 days. Duplicates are time-stamped with the time... | src/class_objectProcessor.py
<|code_start|>import time
import threading
import shared
import hashlib
import random
from struct import unpack, pack
import sys
import string
from subprocess import call # used when the API must execute an outside program
from pyelliptic.openssl import OpenSSL
import highlevelcrypto
from... | src/class_objectProcessor.py
<|code_start|>import time
import threading
import shared
import hashlib
import random
from struct import unpack, pack
import sys
import string
from subprocess import call # used when the API must execute an outside program
from pyelliptic.openssl import OpenSSL
import highlevelcrypto
from... |
PyBitmessage does not wait for "verack" and has non specified timeout.
I found a (small) bug in PyBitmessage Version 0.4.2 (or in the protocol specification)
Bug description:
The protocol specification states:
... No futher communication is possible until both peers have exchanged their version.
But PyBitmessage Ver... | src/class_receiveDataThread.py
<|code_start|>doTimingAttackMitigation = True
import time
import threading
import shared
import hashlib
import socket
import random
from struct import unpack, pack
import sys
#import string
#from subprocess import call # used when the API must execute an outside program
#from pyelliptic... | src/class_receiveDataThread.py
<|code_start|>doTimingAttackMitigation = True
import time
import threading
import shared
import hashlib
import socket
import random
from struct import unpack, pack
import sys
#import string
#from subprocess import call # used when the API must execute an outside program
#from pyelliptic... |
"View HTML code as formated text", problem with non-Latin symbols
I got this message, full of Cyrillic characters:
> Тост тест туст
After clicking "View HTML code as formated text" it became unreadable:
> ТоÑÑ ÑеÑÑ ÑÑÑÑ
It looks to me like raw and formated views use different encodings to show the text.... | src/bitmessageqt/__init__.py
<|code_start|>try:
import locale
except:
pass
withMessagingMenu = False
try:
from gi.repository import MessagingMenu
from gi.repository import Notify
withMessagingMenu = True
except ImportError:
MessagingMenu = None
from addresses import *
import shared
from bitmes... | src/bitmessageqt/__init__.py
<|code_start|>try:
import locale
except:
pass
withMessagingMenu = False
try:
from gi.repository import MessagingMenu
from gi.repository import Notify
withMessagingMenu = True
except ImportError:
MessagingMenu = None
from addresses import *
import shared
from bitmes... |
Minimum supported Python version
I think it is about time that the minimum supported version of Python be determined. Littered throughout [reddit](https://pay.reddit.com/r/bitmessage/), the [forums](https://bitmessage.org/forum/) and this [issue tracker](https://github.com/Bitmessage/PyBitmessage/issues) are posts from... | src/bitmessagemain.py
<|code_start|>#!/usr/bin/env python2.7
# Copyright (c) 2012 Jonathan Warren
# Copyright (c) 2012 The Bitmessage developers
# Distributed under the MIT/X11 software license. See the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
# Right now, PyBitmessage only su... | src/bitmessagemain.py
<|code_start|>#!/usr/bin/env python2.7
# Copyright (c) 2012 Jonathan Warren
# Copyright (c) 2012 The Bitmessage developers
# Distributed under the MIT/X11 software license. See the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
# Right now, PyBitmessage only su... |
Trouble sending on multicor machines on 0.4.4
I've seen this on both an OSX box (8 cores) and a linux box (4 cores). I was only able to do the full reproducible on linux, as my `keys.dat` file prevented me from going back to 0.4.3 on the OSX box.
1. Check out v0.4.3.
2. Open top
3. Open bitmessage.
4. Send a message.
5... | src/bitmessagemain.py
<|code_start|>#!/usr/bin/env python2.7
# Copyright (c) 2012 Jonathan Warren
# Copyright (c) 2012 The Bitmessage developers
# Distributed under the MIT/X11 software license. See the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
# Right now, PyBitmessage only su... | src/bitmessagemain.py
<|code_start|>#!/usr/bin/env python2.7
# Copyright (c) 2012 Jonathan Warren
# Copyright (c) 2012 The Bitmessage developers
# Distributed under the MIT/X11 software license. See the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
# Right now, PyBitmessage only su... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.