fix: Fix docker examples
- Moved `httpconnection` import from `clients` to `core`. - Changed `tfgrid-sdk-ts` dashboard to playground. - Added ipaddr to node_local(). - Added public keyword to OpenSSLGenerateArgs. - Improved DockerEngine image and container loading. - Added utils.contains_ssh_port. - Improved error handling in DockerEngine. - Improved Docker registry handling. Co-authored-by: mariobassem12 <mariobassem12@gmail.com> Co-authored-by: omda <mahmmoud.hassanein@gmail.com>
This commit is contained in:
@@ -4,7 +4,10 @@ import freeflowuniverse.herolib.data.ipaddress
|
||||
|
||||
// get node connection to local machine
|
||||
pub fn (mut bldr BuilderFactory) node_local() !&Node {
|
||||
return bldr.node_new(name: 'localhost')
|
||||
return bldr.node_new(
|
||||
name: 'localhost'
|
||||
ipaddr: '127.0.0.1'
|
||||
)
|
||||
}
|
||||
|
||||
// format ipaddr: localhost:7777 .
|
||||
@@ -64,7 +67,6 @@ pub fn (mut bldr BuilderFactory) node_new(args_ NodeArguments) !&Node {
|
||||
mut iadd := ipaddress.new(args.ipaddr)!
|
||||
node.name = iadd.toname()!
|
||||
}
|
||||
|
||||
wasincache := node.load()!
|
||||
|
||||
if wasincache && args.reload {
|
||||
|
||||
Reference in New Issue
Block a user