Comments (9)
I'm actually wondering now why we return a model object instead of the raw template there.
from azure-armrest.
@djberg96 Good point. This is the a new method added recently. Indeed we may not want to model it. Can you try to add it the exclude list in https://github.com/ManageIQ/azure-armrest/blob/master/lib/azure/armrest/model/base_model.rb#L211?
from azure-armrest.
Actually it is not the exclude list. https://github.com/ManageIQ/azure-armrest/blob/master/lib/azure/armrest/template_deployment_service.rb#L50 we should NOT model DeploymentTemplate
.
from azure-armrest.
Perhaps it was originally a bad decision, but I'd like to keep backwards compatibility. Please see: #265
from azure-armrest.
@djberg96 although #265 addresses a potential issue for modeling, it does not solve the problem for deployment template. The template may not be deployed properly if the content has been changed.
We have to make the change here even if it breaks the backward compatibility.
from azure-armrest.
@bzwei Ah, true enough. Ok, I'll modify get_template
as well then.
This shouldn't be a problem for ManageIQ since it's calling .to_s on it anyway.
from azure-armrest.
@bzwei Actually, that shouldn't modify the content, since the json is stored as its own attribute and __setobj__(@hash.dup)
uses a dup.
from azure-armrest.
@djberg96 our current implementation of to_s
is not correct because it does not pickup any changes through setter methods.
from azure-armrest.
Fixed by #266.
from azure-armrest.
Related Issues (20)
- Remove Nokogiri, use REXML HOT 2
- StorageAccountService#list_all_private_images results in Errno::ECONNREFUSED HOT 2
- Marketplace Image Support HOT 1
- Switch from rest-client to excon HOT 1
- VirtualMachineImageService#list_all is very slow HOT 1
- Add friendlier handling of 429 and 50x errors HOT 1
- Refactor request methods into a module HOT 1
- StorageAccount#all_blobs consumes lots of memory HOT 1
- Some current test failures on Windows HOT 5
- Test failures on Windows HOT 1
- next_marker_results is busted HOT 1
- VirtualMachineService#delete_associated_resources does not handle managed disks HOT 1
- StorageAccount#table_data with :all option is busted HOT 2
- RFE: AzureStack -- auto-discovery of Azure endpoint URLs HOT 6
- Update rest-client to 2.1.0 HOT 1
- Metrics collection needs to be updated HOT 1
- Azure-armrest fails to properly handle application/xml exceptions
- Parallel dependency 5y old HOT 7
- Get Subscription Usage cost (monthly) HOT 8
- Dependency Dashboard
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from azure-armrest.