[
https://issues.apache.org/jira/browse/VCL-1078?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17112324#comment-17112324
]
Josh Thompson commented on VCL-1078:
------------------------------------
Lines 950 and 951 of VMware.pm in version 2.5.1 can be commented out to allow
vSphere_SDK.pm to work successfully. Ideally, adding an if conditional before
the lines checking to see if the vmhost_os object can append text files would
be best.
> Undefined subroutine error because vSphere_SDK.pm does not implement
> append_text_file
> -------------------------------------------------------------------------------------
>
> Key: VCL-1078
> URL: https://issues.apache.org/jira/browse/VCL-1078
> Project: VCL
> Issue Type: Bug
> Components: vcld (backend)
> Affects Versions: 2.5
> Reporter: Andrew Kurth
> Priority: Major
> Fix For: 2.5.2
>
>
> Reported by Junaid Ali: [http://markmail.org/message/xefxgs76dco43cwx]
> VMware.pm::capture is calling $self->vmhost_os->append_text_file. When SSH
> isn't available, $self->vmhost_os is an instance of vSphere_SDK.pm. This
> module does not implement an append_text_file subroutine.
> It may not be possible or worthwhile to implement such a subroutine in
> vSphere_SDK.pm as I think the file would need to be retrieved, appended, then
> copied back. Instead, a $self->vmhost_os->can('append_text_file') should be
> added to the caller.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)