suse-enceladus / azure-img-utils Goto Github PK
View Code? Open in Web Editor NEWLicense: GNU General Public License v3.0
License: GNU General Public License v3.0
Currently the code will replace an existing image version if a new one is added with same version string. Instead it would be helpful for the function to raise an error if the version already exists. Also, adding a force replace flag will allow the existing functionality to persist.
09:35:19 ▶ azure-img-utils cloud-partner-offer publish --offer-id sles-15-sp4-byos-arm64 --notification-emails [email protected]
Unable to publish cloud partner offer
'AzureImage' object has no attribute 'publish_cloud_partner_offer'
When attempting to add an image to a generation when the offer has no generations yet the key does not exist diskGenerations
. This leads to a key error.
The section in the README regarding the installation refers to a OBS project, which does not contain python3-azure-img-utils
anymore:
$ zypper ar http://download.opensuse.org/repositories/Cloud:/Tools/<distribution>
$ zypper refresh
$ zypper in python3-azure-img-utils
Cloud:Tools doesn't contain python3-azure-img-utils
but Cloud:Tools:CI does.
Current version of the Azure SDK does NOT provide a proper object with the result for an asynchronous operation.
In image deletion, the result object is always None, no matter if the image is actually deleted or not, so it's not possible to provide accurate info to the cli user in some error scenarios.
It might be good to check the issue again in the future to fix it.
This is required when publishing an offer. When the value provided by CLI or config is None raise an exception. Otherwise the Azure MP API provides an unhelpful message:
Unable to publish cloud partner offer
400 Client Error: Bad Request for url: https://cloudpartner.azure.com/api/publishers/suse/offers/sles-15-sp3-chost-byos/publish?api-version=2017-10-31
It would be nice to include the gallery image functions. This is another way to create custom compute images that allows for sharing the images with other users/accounts.
Where the class methods call utility functions with similar names the code can move to the class method and the utility can be dropped. For example AzureImage.create_compute_image
calls create_image
to do the actual image creation. This can be consolidated in the class. This solves the name clashing issue and leaves utils modules for functions that don't fit nicely in the class or to prevent duplication.
Tests fail on assertion in python3.6 and click 7.0:
assert "Missing option '--blob-name'" in result.output
Because the output is:
Missing option "--blob-name"
We shouldn't rely on output of " vs ' in tests as this could change based on the version of click and/or python.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.